Package dtk :: Package ui :: Module button :: Class ToggleButton

Class ToggleButton

source code


ToggleButton class.

Instance Methods
 
__init__(self, inactive_normal_dpixbuf, active_normal_dpixbuf, inactive_hover_dpixbuf=None, active_hover_dpixbuf=None, inactive_press_dpixbuf=None, active_press_dpixbuf=None, inactive_disable_dpixbuf=None, active_disable_dpixbuf=None, button_label=None, padding_x=0)
Initialize ToggleButton class.
source code
Method Details

__init__(self, inactive_normal_dpixbuf, active_normal_dpixbuf, inactive_hover_dpixbuf=None, active_hover_dpixbuf=None, inactive_press_dpixbuf=None, active_press_dpixbuf=None, inactive_disable_dpixbuf=None, active_disable_dpixbuf=None, button_label=None, padding_x=0)
(Constructor)

source code 

Initialize ToggleButton class.

Parameters:
  • inactive_normal_dpixbuf - DynamicPixbuf for inactive normal status.
  • active_normal_dpixbuf - DynamicPixbuf for active normal status.
  • inactive_hover_dpixbuf - DynamicPixbuf for inactive hover status, default is None.
  • active_hover_dpixbuf - DynamicPixbuf for active hover status, default is None.
  • inactive_press_dpixbuf - DynamicPixbuf for inactive press status, default is None.
  • active_press_dpixbuf - DynamicPixbuf for active press status, default is None.
  • inactive_disable_dpixbuf - DynamicPixbuf for inactive disable status, default is None.
  • active_disable_dpixbuf - DynamicPixbuf for active disable status, default is None.
  • button_label - Button label, default is None.
  • padding_x - Padding x, default is 0.