Issue 115: About the hide() and show() function
Status:  Done
Owner:
Closed:  Dec 2009
Project Member Reported by tommy.bjorling@gmail.com, Nov 22, 2009
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 22, 2009
Project Member #1 tommy.bjorling@gmail.com
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()
Nov 23, 2009
Project Member #2 txprog
(No comment was entered for this change.)
Owner: txprog
Labels: Milestone-0.4 OpSys-All
Dec 1, 2009
Project Member #3 txprog
(No comment was entered for this change.)
Status: Done