|
From: Kevin A. <ka...@us...> - 2004-08-12 19:19:40
|
Update of /cvsroot/pythoncard/PythonCard/samples/simpleBrowser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16511/simpleBrowser Modified Files: simpleBrowser.py Log Message: dialog.py is now a thin wrapper around wx.lib.dialogs.py all dialog results now use DialogResults class instead of dictionary e.g. result.accepted instead of result['accepted'] see dialogs sample and other samples and tools for examples of change Index: simpleBrowser.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/simpleBrowser/simpleBrowser.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** simpleBrowser.py 5 May 2004 16:53:45 -0000 1.18 --- simpleBrowser.py 12 Aug 2004 19:18:59 -0000 1.19 *************** *** 90,95 **** wildcard = "HTML files (*.htm;*.html)|*.htm;*.html;*.HTM;*.HTML|All files (*.*)|*.*" result = dialog.openFileDialog(None, "Open file", '', '', wildcard) ! if result['accepted']: ! path = result['paths'][0] self.openFile(path) --- 90,95 ---- wildcard = "HTML files (*.htm;*.html)|*.htm;*.html;*.HTM;*.HTML|All files (*.*)|*.*" result = dialog.openFileDialog(None, "Open file", '', '', wildcard) ! if result.accepted: ! path = result.paths[0] self.openFile(path) |