[Anygui-checkins] CVS: nondist/sandbox/thomas/anygui/tests window.py,1.3,1.4
Brought to you by:
mlh
From: Thomas H. <th...@us...> - 2001-07-31 15:55:41
|
Update of /cvsroot/anygui/nondist/sandbox/thomas/anygui/tests In directory usw-pr-cvs1:/tmp/cvs-serv6787 Modified Files: window.py Log Message: Now uses a subclass of anygui.Window to check that this is working. Index: window.py =================================================================== RCS file: /cvsroot/anygui/nondist/sandbox/thomas/anygui/tests/window.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** window.py 2001/07/25 18:54:22 1.3 --- window.py 2001/07/31 15:55:35 1.4 *************** *** 1,11 **** from anygui import * ! win = Window(title = "A Standard Window", width = 300, height = 200) win.show() dlog = Window(title = "A Dialog Window", style = 'dialog', x = 100, y = 300, width = 300, height = 200) dlog.show() application().run() --- 1,20 ---- from anygui import * ! class MyWindow(Window): ! pass ! ! win = MyWindow(title = "A Standard Window", width = 300, height = 200) win.show() + print application()._windows + print win + print dlog = Window(title = "A Dialog Window", style = 'dialog', x = 100, y = 300, width = 300, height = 200) dlog.show() + print application()._windows application().run() + + print application()._windows |