| Issue 252: | add event on_state_change on MTButton | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Could you add the event on_state_change(MTButton button) on the MTButton
widget when we the state change.
def buttonStateChange(button) :
if button.state == 'down'
print 'down'
else :
print 'normal'
myButton = MTButton()
myButton.on_state_change = buttonStateChange
Thank
May 25, 2010
done in master http://github.com/tito/pymt/blob/master/examples/widgets/button.py
May 25, 2010
(No comment was entered for this change.)
Status:
Done
Jul 2, 2010
(No comment was entered for this change.)
Labels:
Milestone-0.5
|
Labels: Type-Enhancement Milestone-0.4.1 Component-Core