| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
base.parameterizedobject.Parameter --+
|
base.parameterclasses.CallableParameter --+
|
ButtonParameter
Parameter representing all Parameter classes that are GUI-specific.
Can be associated with an image when used in a TkParameterizedObject 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 instead 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 |
|||
|
|||
Initialize a new Parameter object: store the supplied attributes. default: the owning class's value for the attribute represented by this Parameter. precedence is a value, usually in the range 0.0 to 1.0, that allows the order of Parameters in a class to be defined (for e.g. in GUI menus). A negative precedence indicates a parameter that should be hidden in e.g. GUI menus. default, doc, and precedence default to None. This is to allow inheritance of Parameter slots (attributes) from the owning-class' class hierarchy (see ParameterizedObjectMetaclass). |
|
|||
__classdocstr(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Thu Feb 21 15:25:11 2008 | http://epydoc.sourceforge.net |