Skip to content

Commit

Permalink
add screen to rootpanel duh
Browse files Browse the repository at this point in the history
git-svn-id: https://pyjamas.svn.sourceforge.net/svnroot/pyjamas/trunk@402 7a2bd370-bda8-463c-979e-2900ccfb811e
  • Loading branch information
lkcl committed Mar 15, 2009
1 parent c220135 commit 8524c51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/shell/Screen.py
Expand Up @@ -5,7 +5,7 @@

class Application(DialogBoxModal):
def __init__(self, screen, title, width, height):
DialogBoxModal.__init__(self, title)
DialogBoxModal.__init__(self, title, None, False, screen)
self.screen = screen
self.setText(title)
#self.setWidth(width)
Expand Down Expand Up @@ -100,5 +100,6 @@ def close_app(self, app):
t = self.window[app.identifier]
if not self.remove(t):
Window.alert("%s not in app" % app.identifier)
t.hide()
del self.window[app.identifier]

3 changes: 3 additions & 0 deletions examples/shell/Shell.py
Expand Up @@ -32,3 +32,6 @@ def text_app():
w = slider_app()
a = s.add_app(w, "s", 20, 100)
a.show()

RootPanel().add(s)

0 comments on commit 8524c51

Please sign in to comment.