Home | Trees | Index | Help |
---|
|
object
--+ |ScreenWidget
--+ |AbstractButton
--+ | Button
Method Summary | |
---|---|
__init__(self,
x,
y,
callback,
text,
image,
callback_data,
size,
anchor,
style,
margin)
| |
click(self)
| |
Draw this widget to the screen. | |
_mousepress(self,
event)
| |
_mouserelease(self,
event)
| |
Inherited from AbstractButton | |
| |
| |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
Return repr(x)... | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Instance Variable Summary | |
---|---|
highlighted : Is the button currently highlighted? | |
Inherited from AbstractButton | |
down : is it pressed? | |
layer : An integer indicating the order in which the widget should be drawn to
the screen, relative to other widgets. | |
Inherited from ScreenWidget | |
bool |
hidden : If true, then the screen widget will not be drawn. |
Class Variable Summary | |
---|---|
dict |
BG_IMAGE = {'dark': 'ui/button2.gif', 'light': 'ui/butto...
|
dict |
TEXT_COLOR = {'dark': (255, 255, 255), 'light': (0, 0, 0...
|
Inherited from AbstractButton | |
dict |
STYLES = {'dark': ('ui/button2.gif', (255, 255, 255)), '...
|
Method Details |
---|
__init__(self,
x=0,
y=0,
callback=<function _noop at 0x1107430>,
text=None,
image=None,
callback_data=(),
size=None,
anchor='topleft',
style='standard',
margin=(10, 6))
|
click(self) |
draw(self, screen, duration)Draw this widget to the screen.
|
_mousepress(self, event) |
_mouserelease(self, event) |
Instance Variable Details |
---|
highlightedIs the button currently highlighted? |
Class Variable Details |
---|
BG_IMAGE
|
TEXT_COLOR
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Sep 22 22:52:46 2005 | http://epydoc.sf.net |