Package dtk :: Package ui :: Module group :: Class ToggleButtonItem

Class ToggleButtonItem

source code


Toggle button item for ToggleButtonGroup.

Instance Methods
 
__init__(self, item, index, set_index, get_index)
Initialize ToggleButtonItem class.
source code
 
wrap_toggle_button_clicked_action(self)
Internal function to wrap clicked action.
source code
Method Details

__init__(self, item, index, set_index, get_index)
(Constructor)

source code 

Initialize ToggleButtonItem class.

Parameters:
  • item - Toggle button item, item foramt: (inactive_dpixbuf, active_dpixbuf, inactive_hover_dpixbuf, active_hover_dpixbuf, toggled_callback)
  • index - Item index.
  • set_index - Set index callback.
  • get_index - Get index callback.