|
From: Kevin A. <ka...@us...> - 2004-08-12 19:19:36
|
Update of /cvsroot/pythoncard/PythonCard/samples/custdb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16511/custdb Modified Files: custdb.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: custdb.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/custdb/custdb.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** custdb.py 24 Apr 2004 21:09:17 -0000 1.8 --- custdb.py 12 Aug 2004 19:18:50 -0000 1.9 *************** *** 175,180 **** def on_delButt_mouseUp(self, event): result = dialog.messageDialog(self, 'Are you sure you want to delete the entry: %s ?'%self.rowsDict[self.selected]['name'], 'Delete Entry.' ) ! if result['accepted']: ! print "messageDialog result:\naccepted: %s\nreturned: %s" % (result['accepted'], result['returned']) del self.rowsDict[self.selected] self.selected -= 1 --- 175,180 ---- def on_delButt_mouseUp(self, event): result = dialog.messageDialog(self, 'Are you sure you want to delete the entry: %s ?'%self.rowsDict[self.selected]['name'], 'Delete Entry.' ) ! if result.accepted: ! print "messageDialog result:\naccepted: %s\nreturnedString: %s" % (result.accepted, result.returnedString) del self.rowsDict[self.selected] self.selected -= 1 |