Issue 116: on_release action not fired when leaving button
Status:  Done
Owner:
Closed:  Nov 2009
Project Member Reported by tommy.bjorling@gmail.com, Nov 24, 2009
What steps will reproduce the problem?
1. Make a simple button app with 2 buttons.
2. At on_press, make button1 hide() button2.
3. At on_release, make button2 show().
4. Now, run the app, press and hold button1 and drag off the button1 area.

What is the expected output? What do you see instead?
 - When you do this, you will see that there is no on_release action.

 - Here is a simple sample for this:

--------------------------CODE--------------------------

from pymt import *
w = MTWindow()

testButton1 = MTButton(label="Test1", size=(50, 50), pos=(50, 50))
w.add_widget(testButton1)

@testButton1.event
def on_press(touch):
    testButton2.hide()

@testButton1.event
def on_release(touch):
    testButton2.show()

testButton2 = MTButton(label="Test2", size=(50, 50), pos=(50, 100))
w.add_widget(testButton2)

runTouchApp()

----------------------END OF CODE-----------------------
Nov 30, 2009
Project Member #1 txprog
(No comment was entered for this change.)
Summary: on_release action not fired when leaving button
Owner: txprog
Labels: Milestone-0.4
Nov 30, 2009
Project Member #2 txprog
(No comment was entered for this change.)
Status: Done