[Anygui-checkins] CVS: anygui/test test_openfiledlg.py,1.4,1.5
Brought to you by:
mlh
From: Magnus L. H. <ml...@us...> - 2002-11-17 18:42:11
|
Update of /cvsroot/anygui/anygui/test In directory usw-pr-cvs1:/tmp/cvs-serv11968/test Modified Files: test_openfiledlg.py Log Message: Started to fiddle with a Borg Application, and tried to fix line endings. Index: test_openfiledlg.py =================================================================== RCS file: /cvsroot/anygui/anygui/test/test_openfiledlg.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** test_openfiledlg.py 16 Nov 2002 16:44:59 -0000 1.4 --- test_openfiledlg.py 17 Nov 2002 18:42:07 -0000 1.5 *************** *** 1,17 **** ! from anygui import * ! import sys ! ! dir='' ! if sys.platform in ['cygwin', 'linux1', 'linux2']: ! dir='/usr/lib' ! 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() --- 1,17 ---- ! from anygui import * ! import sys ! ! dir='' ! if sys.platform in ['cygwin', 'linux1', 'linux2']: ! dir='/usr/lib' ! 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() |