![]() Only the console macro is accessible outside an APSO instance. # console(BACKGROUND=0x0, FOREGROUND=0xFFFFFF) Signature: console(**kwargs), where optional kwargs are intended to overwrite default gui values (BACKGROUND, FOREGROUND.) or to pass caller's locales and/or globals to the console context.įrom apso_utils import console, msgbox, mri, xray ![]() explore living uno objects with introspection tools such as MRI or Xray (if installed) get quick info on any function using the builtin help() command debug a script using pdb's runcall function (will not work with scripts embedded in documents) display the output of a script running in parallel or started from the shell (all modules visible from the office program can be imported) quickly verify python expressions in the context of the embedded interpreter interact directly with a document and test "live" the methods of the uno api (maybe also useful for other languages, such basic) Launches the introspection tool MRI by Hanya (must be installed first)Įmulates, as close as possible, the python interactive shell. Launches the introspection tool Xray by Bernard Marcelly (must be installed first) Signature: msgbox(message, title='Message', boxtype='message', buttons=1, win=None) Like the oobasic build-in function msgbox, but simplified as only intended for quick debugging. These helpers are four functions named msgbox, xray, mri and console and can be imported by a classic import statement like from apso_utils import msgbox
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |