Package dtk :: Package ui :: Module button :: Class ImageButton

Class ImageButton

source code


ImageButton class.

Instance Methods
 
__init__(self, normal_dpixbuf, hover_dpixbuf, press_dpixbuf, scale_x=False, content=None)
Initialize ImageButton class.
source code
Method Details

__init__(self, normal_dpixbuf, hover_dpixbuf, press_dpixbuf, scale_x=False, content=None)
(Constructor)

source code 

Initialize ImageButton class.

Parameters:
  • normal_dpixbuf - DynamicPixbuf for button normal status.
  • hover_dpixbuf - DynamicPixbuf for button hover status.
  • press_dpixbuf - DynamicPixbuf for button press status.
  • scale_x - Whether scale horticulturally, default is False.
  • content - Button label content.