Skip to content

Commit

Permalink
Investigating issue #556
Browse files Browse the repository at this point in the history
Setting background issues on subWindows
  • Loading branch information
jarvisteach committed Mar 13, 2019
1 parent b98a33a commit 35b4d32
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions examples/issues/issue556.py
@@ -0,0 +1,34 @@
import sys
sys.path.append("../../")

from appJar import gui


def launch(win):
app.showSubWindow(win)

def bg():
app.removeBgImage()

with gui('main', '300x300') as app:
# app.setBgImage('map.gif')
app.sticky = ''
app.stretch = 'both'

# these go in the main window
app.addButtons(["one", "two"], launch)
app.entry('a')
app.check('a')
app.button("REMOVE", bg)

# this is a pop-up
with app.subWindow('one', modal=True, location='100,100'):
app.addImage("pic", 'lb3.gif')
app.addLabel("l1", "SubWindow One")

# this is another pop-up
with app.subWindow('two', '300x300', visible=True, location='150,200'):
# app.setBgImage('lb3.gif')
app.addLabel("l2", "SubWindow Two")

app.showSubWindow('one')

0 comments on commit 35b4d32

Please sign in to comment.