[Anygui-checkins] CVS: anygui/test test_openfiledlg.py,1.3,1.4
Brought to you by:
mlh
From: Dallas T. J. <pan...@us...> - 2002-11-16 16:45:03
|
Update of /cvsroot/anygui/anygui/test In directory usw-pr-cvs1:/tmp/cvs-serv9861/test Modified Files: test_openfiledlg.py Log Message: things are looking pretty good now. i decided to just make the file selection ('open') a callback via link & send. the client has to specify the link, of course. we still need to figure out a way to fix tkinter's focus deal. Index: test_openfiledlg.py =================================================================== RCS file: /cvsroot/anygui/anygui/test/test_openfiledlg.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** test_openfiledlg.py 16 Nov 2002 12:41:11 -0000 1.3 --- test_openfiledlg.py 16 Nov 2002 16:44:59 -0000 1.4 *************** *** 1,3 **** ! from anygui import * import sys --- 1,3 ---- ! from anygui import * import sys *************** *** 7,13 **** else: dir='C:\\' ! ! app = Application(name='Test OpenFileDlg', version='1.0') ! filedlg = OpenFileDialog(dir,'*') ! app.add(filedlg) ! app.run() --- 7,17 ---- else: dir='C:\\' ! ! def openFileDlgCallback(event): ! print '>> file chosen -> ', event.file ! ! app = Application(name='Test OpenFileDlg', version='1.0') ! filedlg = OpenFileDialog(dir,'*') ! link(filedlg, 'open', openFileDlgCallback) ! app.add(filedlg) ! app.run() |