|
From: Kevin A. <ka...@us...> - 2004-08-12 19:19:35
|
Update of /cvsroot/pythoncard/PythonCard/samples/dbBrowser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16511/dbBrowser Modified Files: dbLogin.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: dbLogin.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/dbBrowser/dbLogin.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** dbLogin.py 24 Apr 2004 21:09:18 -0000 1.9 --- dbLogin.py 12 Aug 2004 19:18:50 -0000 1.10 *************** *** 72,77 **** else: result = dialog.openFileDialog() ! if result['accepted']: ! dir, filename = os.path.split(result['paths'][0]) if self.components.choice.stringSelection == 'Gadfly': filename = os.path.splitext(filename)[0] --- 72,77 ---- else: result = dialog.openFileDialog() ! if result.accepted: ! dir, filename = os.path.split(result.paths[0]) if self.components.choice.stringSelection == 'Gadfly': filename = os.path.splitext(filename)[0] |