mirror of
https://github.com/gryf/wmdocklib.git
synced 2025-12-21 21:38:03 +01:00
6d70762f4a0f13d697e780391fa26d9dc6547b39
I've added the class pywmgeneral.Drawable, offering an interface to pixmaps. this way a wmdocklib application can have more than one drawable: not only the main window, but as many pixmaps as are necessary. the first use of pywmgeneral.Drawable is to hold the graphical representation of the labels in an application. Labels are also new to the library and the intention is that they substitute the putString methods. Application.addLabel() is used to create a new named label. the label takes care of the specified area, or of the area necessary to show the specified string. Application.setLabelText() is used to specify a new text for a label. if necessary, a new pixmap is created. the area taken care of by a label cannot be modified. during the update cycle, labels that span an area which is too small for their text are scrolled a pixel at a time. pywmradio.py uses this functionality.
[WHAT] pywmdockapps is the name of an GPL'd project containing one python package (wmdocklib) and a few python scripts. wmdocklib will help you develop WindowMaker dockapps in python. it is mostly a wrapper around the popular wmgeneral.c, but some new functions have been added too. wmdocklib is divided in two parts: a thin wrapper around the popular wmgeneral.c and a thicker pywmhelpers.py module providing more pythonic interface to the wmdocklib and a few additional functions (e.g.: handling simple configuration files). all functions provided by these modules are imported in the namespace of wmdocklib so you won't need explicit importing of either modules: just import wmdocklib. It is adviced to only use those functions provided by pywmhelpers and not touch the pywmgeneral module directly at all. For information about how to use the module, see the documentation in pywmhelpers.py. It is also possible to import it in the interactive interpreter and issue 'help(pywmhelpers)'. the sample scripts are described in the examples/README a small set of samples are provided. all of them make use of the module pywmgeneral. [INSTALLATION] python ./setup install [CONTACT] Anything related to this piece of software can be e-mailed to me, Mario Frasca <mfrasca@interia.pl>.
Description
Languages
C
62.1%
Python
37.9%