Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to hide/show main window (#112)
Functions to hide/show main window Extra parameter on go(), to declare which window to start with
- Loading branch information
1 parent
dc8b337
commit 91798a8
Showing
4 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import sys | ||
sys.path.append("../../") | ||
from appJar import gui | ||
|
||
def press(btn): | ||
if btn == "Hide": app.hide() | ||
elif btn == "Show": app.show() | ||
else: app.showSubWindow(btn) | ||
|
||
app=gui("Window") | ||
|
||
app.startSubWindow("Menu") | ||
app.addButton("Hide", press) | ||
app.addButton("Show", press) | ||
app.stopSubWindow() | ||
|
||
for loop in range(5): | ||
label = "PopUp" + str(loop) | ||
app.startSubWindow(label) | ||
app.setLocation(100+loop*100, 100) | ||
app.addLabel(label, label) | ||
app.openSubWindow("Menu") | ||
app.addButton(label, press) | ||
app.stopSubWindow() | ||
app.addGrip() | ||
app.stopSubWindow() | ||
|
||
|
||
app.addLabel("l1", "mmmmmmmmmm") | ||
app.addButton("Menu", press) | ||
#app.go(startWindow="Menu") | ||
app.go() |