From: Kevin A. <ka...@us...> - 2004-08-12 19:10:18
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15013 Modified Files: util.py Log Message: getCommandLineArgs moved to util.py runOptionsDialog moved to templates.dialogs.runOptionsDialog.py 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: util.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/util.py,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** util.py 28 Jul 2004 07:11:33 -0000 1.26 --- util.py 12 Aug 2004 19:10:04 -0000 1.27 *************** *** 257,260 **** --- 257,278 ---- # currently it is only used by the slideshow sample + def getCommandLineArgs(cmdLineArgs): + args = [] + if cmdLineArgs['otherargs'] != '': + args.append(cmdLineArgs['otherargs']) + if cmdLineArgs['debugmenu']: + args.append('-d') + if cmdLineArgs['logging']: + args.append('-l') + if cmdLineArgs['messagewatcher']: + args.append('-m') + if cmdLineArgs['namespaceviewer']: + args.append('-n') + if cmdLineArgs['propertyeditor']: + args.append('-p') + if cmdLineArgs['shell']: + args.append('-s') + return args + def runScript(filename, args=' ', requireConsole=False, useInterpreter=False): if filename is None: |