| Trees | Indices | Help |
|
|---|
|
|
A GUI-specific parameter to display a button.
Can be associated with an image by specifying an image_path (i.e. location of an image suitable for PIL, e.g. a PNG, TIFF, or JPEG image) and optionally a size (width,height) tuple.
Note that the button size can also be set when there is no image, but instead of being presumed to be in pixels, it is presumed to be in text units (a Tkinter feature: see e.g. http://effbot.org/tkinterbook/button.htm). Therefore, to place two identically sized buttons next to each other, with one displaying text and the other an image, you first have to convert one of the sizes to the other's units.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
__classdoc = str(object) -> string |
|||
|
|||
| _hack | |||
| image_path | |||
| size | |||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
|
|||
__classdocstr(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Aug 5 14:59:26 2010 | http://epydoc.sourceforge.net |