CVS: anygui/test test_openfiledlg.py,1.3,1.4
"Dallas T. Johnston" <[email protected]> Sat, 16 Nov 2002 08:45:01 -0800
| Newsgroups | gmane.comp.python.anygui.cvs |
|---|---|
| Message-ID | <[email protected]> |
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()
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html