My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 252: add event on_state_change on MTButton
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  txprog
Closed:  May 2010


 
Reported by Thomas.L...@gmail.com, May 19, 2010
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 20, 2010
Project Member #1 txprog
(No comment was entered for this change.)
Status: Accepted
Labels: Type-Enhancement Milestone-0.4.1 Component-Core
May 25, 2010
Project Member #3 txprog
(No comment was entered for this change.)
Status: Done
Jul 2, 2010
Project Member #4 txprog
(No comment was entered for this change.)
Labels: Milestone-0.5

Powered by Google Project Hosting