From: Kevin A. <ka...@us...> - 2004-08-12 19:19:40
|
Update of /cvsroot/pythoncard/PythonCard/samples/simpleIEBrowser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16511/simpleIEBrowser Modified Files: simpleIEBrowser.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: simpleIEBrowser.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/simpleIEBrowser/simpleIEBrowser.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** simpleIEBrowser.py 10 May 2004 00:45:22 -0000 1.13 --- simpleIEBrowser.py 12 Aug 2004 19:19:01 -0000 1.14 *************** *** 94,99 **** wildcard = "HTML files (*.htm;*.html)|*.htm;*.html|All files (*.*)|*.*" result = dialog.openFileDialog(None, "Open file", '', '', wildcard) ! if result['accepted']: ! path = result['paths'][0] self.openFile(path) --- 94,99 ---- wildcard = "HTML files (*.htm;*.html)|*.htm;*.html|All files (*.*)|*.*" result = dialog.openFileDialog(None, "Open file", '', '', wildcard) ! if result.accepted: ! path = result.paths[0] self.openFile(path) |