| Issue 115: | About the hide() and show() function | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Make a simple button app with 2 buttons where one hide the other. 2. Run the app and make one button hide. 3. When the button is hidden, try to click on the hidden button area. What is the expected output? What do you see instead? - Now you will see that the button is still there, just that its invisable. Please use labels and text to provide additional information. I have made a simple sample to show the case. The sample is located here: http://black-hole.mine.nu/dl/pymt/sample.py
Nov 23, 2009
(No comment was entered for this change.)
Owner:
txprog
Labels: Milestone-0.4 OpSys-All
Dec 1, 2009
(No comment was entered for this change.)
Status:
Done
|
Also added the code here: 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.show() if touch.is_double_tap: testButton2.hide() return testButton2 = MTButton(label="Test2", size=(50, 50), pos=(100, 50)) w.add_widget(testButton2) @testButton2.event def on_press(touch): testButton1.hide() if touch.is_double_tap: testButton1.show() return testButton2.hide() runTouchApp()