Package horizons :: Package gui :: Package widgets :: Module imagebutton :: Class MainmenuButton
[hide private]
[frames] | no frames]

Class MainmenuButton

source code

fife.extensions.pychan.widgets.ImageButton --+    
                                             |    
                                   ImageButton --+
                                                 |
                                                MainmenuButton

For use in main menu. bw: whether to use greyscale or color.

Instance Methods [hide private]
 
__init__(self, icon='door', **kwargs) source code
 
_get_icon(self) source code
 
_set_icon(self, icon) source code
    Inherited from ImageButton
 
_get_path(self) source code
 
_set_path(self, path) source code
 
is_active(self) source code
 
set_active(self)
Sets the button active.
source code
 
set_inactive(self)
Sets the button inactive.
source code
 
toggle(self) source code
Class Variables [hide private]
  ATTRIBUTES = ImageButton.ATTRIBUTES+ [Attr('icon')]
  ICON = "content/gui/icons/mainmenu/{icon}{bw}.png"
  icon = property(_get_icon, _set_icon)
    Inherited from ImageButton
  ACTIVE = 0
  IMAGE = "content/gui/{path}{{mode}}.png"
  INACTIVE = 1
  path = property(_get_path, _set_path)
Method Details [hide private]

__init__(self, icon='door', **kwargs)
(Constructor)

source code 
Overrides: ImageButton.__init__