Link Search Menu Expand Document

Class ChoiceButton

Class diagram of class of ChoiceButton.

Functions

Function summury
__init__(self, obj=None, choice=None, default=None, direction=0)  
show_choice(self, show=False)  
set_choice_direction(self, direction=0)  
get_choice_selector(self)  
get_selected(self)  
on_shot(self, device=None, picked={}) callback when a device shot the button (more…)
on_unshot(self, device=None, picked={}) callback when a device unshot the button (more…)

Methods desciption :

init

def __init__(self, obj=None, choice=None, default=None, direction=0)

show_choice

def show_choice(self, show=False)

set_choice_direction

def set_choice_direction(self, direction=0)

get_choice_selector

def get_choice_selector(self)

get_selected

def get_selected(self)

on_shot

def on_shot(self, device=None, picked={})

callback when a device shot the button

  • → device : the device which shot the button
  • → picked : picking data (see Canvas pick method)

on_unshot

def on_unshot(self, device=None, picked={})

callback when a device unshot the button

  • → device : the device which shot the button
  • → picked : picking data (see Canvas pick method)