Home | Trees | Index | Help |
---|
|
object
--+ |ScreenWidget
--+ | AbstractButton
Button
,
MenuButton
Method Summary | |
---|---|
__init__(self,
x,
y,
text,
image,
size,
anchor,
style,
margin)
| |
Draw this widget to the screen. | |
draw_down(self,
screen)
| |
draw_hl(self,
screen)
| |
draw_up(self,
screen)
| |
move(self,
x,
y,
anchor)
| |
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 | |
---|---|
down : is it pressed? | |
highlighted : is it highlighted? | |
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 |
STYLES = {'dark': ('ui/button2.gif', (255, 255, 255)), '...
|
Method Details |
---|
__init__(self,
x=0,
y=0,
text=None,
image=None,
size=None,
anchor='topleft',
style='standard',
margin=(0, 6))
|
draw(self, screen, duration)Draw this widget to the screen.
|
draw_down(self, screen) |
draw_hl(self, screen) |
draw_up(self, screen) |
move(self, x, y, anchor='topleft') |
Instance Variable Details |
---|
downis it pressed? |
highlightedis it highlighted? |
layerAn integer indicating the order in which the widget should be drawn to the screen, relative to other widgets. Widgets with higher layer numbers will be drawn later.
|
Class Variable Details |
---|
STYLES
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Sep 22 22:52:43 2005 | http://epydoc.sf.net |