def menu.MenuButton.__init__ |
( |
|
self, |
|
|
|
pos = 0 , |
|
|
|
text = "" , |
|
|
|
cmd = "" , |
|
|
|
enabled = True , |
|
|
|
loc = (0,0 |
|
) |
| |
Element of menu. Parameters:
pos=position of item inside menu
text=text to display
cmd=function to ejecute when click on item
enabled=True/False to enable/disable item
loc=(X,Y) coordinates (to use this, put pos=-1) relative to 0,0 menu_bg
def menu.MenuButton.default |
( |
|
self | ) |
|
def menu.MenuButton.draw |
( |
|
self | ) |
|
def menu.MenuButton.onmouse |
( |
|
self | ) |
|
def menu.MenuButton.onmousedown |
( |
|
self | ) |
|
def menu.MenuButton.onmouseout |
( |
|
self | ) |
|
def menu.MenuButton.onmouseup |
( |
|
self | ) |
|
def menu.MenuButton.update |
( |
|
self | ) |
|
menu.MenuButton.image_disabled |
menu.MenuButton.image_normal |
menu.MenuButton.image_pressed |
menu.MenuButton.surface_backup |
The documentation for this class was generated from the following file: