|
From: Kevin A. <ka...@us...> - 2004-08-15 17:35:35
|
Update of /cvsroot/pythoncard/PythonCard/samples/dialogs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24441/samples/dialogs Modified Files: dialogs.py Log Message: reversed message and title args for multipleChoiceDialog, singleChoiceDialog, textEntryDialog added singleChoiceDialog workaround for 2.5.2.7 added Alex to LICENSE.txt Index: dialogs.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/dialogs/dialogs.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** dialogs.py 12 Aug 2004 19:18:50 -0000 1.22 --- dialogs.py 15 Aug 2004 17:34:56 -0000 1.23 *************** *** 23,31 **** def on_buttonMultipleChoice_mouseClick(self, event): ! result = dialog.multipleChoiceDialog(self, "title", "message", ['one', 'two', 'three']) self.components.fldResults.text = "multipleChoiceDialog result:\naccepted: %s\nSelection: %s" % (result.accepted, result.selection) def on_buttonSingleChoice_mouseClick(self, event): ! result = dialog.singleChoiceDialog(self, "title", "message", ['one', 'two', 'three']) self.components.fldResults.text = "singleChoiceDialog result:\naccepted: %s\nSelection: %s" % (result.accepted, result.selection) --- 23,31 ---- def on_buttonMultipleChoice_mouseClick(self, event): ! result = dialog.multipleChoiceDialog(self, "message", "title", ['one', 'two', 'three']) self.components.fldResults.text = "multipleChoiceDialog result:\naccepted: %s\nSelection: %s" % (result.accepted, result.selection) def on_buttonSingleChoice_mouseClick(self, event): ! result = dialog.singleChoiceDialog(self, "message", "title", ['one', 'two', 'three']) self.components.fldResults.text = "singleChoiceDialog result:\naccepted: %s\nSelection: %s" % (result.accepted, result.selection) *************** *** 97,107 **** def on_buttonTextEntry_mouseClick(self, event): result = dialog.textEntryDialog(self, - 'A window title', 'What is your favorite language?', 'Python') """ result = dialog.textEntryDialog(self, - 'A window title', 'What is your favorite language?', 'Python', wx.TEXT_MULTILINE) """ --- 97,107 ---- def on_buttonTextEntry_mouseClick(self, event): result = dialog.textEntryDialog(self, 'What is your favorite language?', + 'A window title', 'Python') """ result = dialog.textEntryDialog(self, 'What is your favorite language?', + 'A window title', 'Python', wx.TEXT_MULTILINE) """ |