From: Kevin A. <ka...@us...> - 2004-08-15 17:35:09
|
Update of /cvsroot/pythoncard/PythonCard/tools/codeEditor/scriptlets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24441/tools/codeEditor/scriptlets Modified Files: insertDialog.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: insertDialog.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/scriptlets/insertDialog.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** insertDialog.py 12 Aug 2004 19:14:21 -0000 1.8 --- insertDialog.py 15 Aug 2004 17:34:59 -0000 1.9 *************** *** 35,39 **** """ ! multipleChoiceDialogTemplate = """result = dialog.multipleChoiceDialog(self, "title", "message", ['one', 'two', 'three']) if result.accepted: sel = result.selection --- 35,39 ---- """ ! multipleChoiceDialogTemplate = """result = dialog.multipleChoiceDialog(self, "message", "title", ['one', 'two', 'three']) if result.accepted: sel = result.selection *************** *** 59,68 **** """ ! singleChoiceDialogTemplate = """result = dialog.singleChoiceDialog(self, "title", "message", ['one', 'two', 'three']) if result.accepted: sel = result.selection """ ! textEntryDialogTemplate = """result = dialog.textEntryDialog(self, 'title', 'message', 'text') if result.accepted: returned = result.returnedString --- 59,68 ---- """ ! singleChoiceDialogTemplate = """result = dialog.singleChoiceDialog(self, "message", "title", ['one', 'two', 'three']) if result.accepted: sel = result.selection """ ! textEntryDialogTemplate = """result = dialog.textEntryDialog(self, 'message', 'title', 'text') if result.accepted: returned = result.returnedString *************** *** 78,82 **** dialogsList.sort() ! result = dialog.singleChoiceDialog(None, "Dialogs", "Pick a dialog:", dialogsList) if result.accepted: dialogText = eval(result.selection + 'Template') --- 78,82 ---- dialogsList.sort() ! result = dialog.singleChoiceDialog(None, "Pick a dialog:", "Dialogs", dialogsList) if result.accepted: dialogText = eval(result.selection + 'Template') |