Class ChangeState
About :
A change state button refers other graphic nodes and change their state when the button is activated Currently it can hide or show another graphic node
Functions
Function | summury |
---|---|
__init__(self, obj=None, label=’Button’, texture=None, texture_pushed=None, font=None, texture_background=None) | |
add_hide(self, node) | add node to be hidden (more…) |
remove_hide(self, node) | remove node to be hidden (more…) |
add_show(self, node) | remove node to be shown (more…) |
remove_show(self, node) | remove node to be shown (more…) |
on_shot(self, device=None, picked={}) | internal method : change the state of associated graphical node (more…) |
Methods desciption :
init
def __init__(self, obj=None, label='Button', texture=None, texture_pushed=None, font=None, texture_background=None)
add_hide
def add_hide(self, node)
add node to be hidden
- → node
remove_hide
def remove_hide(self, node)
remove node to be hidden
- → node
add_show
def add_show(self, node)
remove node to be shown
- → node
remove_show
def remove_show(self, node)
remove node to be shown
- → node
on_shot
def on_shot(self, device=None, picked={})
internal method : change the state of associated graphical node whenever the button is pushed down
- → device
- → picked