Author: bugman Date: Thu Sep 16 10:22:32 2010 New Revision: 11578 URL: http://svn.gna.org/viewcvs/relax?rev=11578&view=rev Log: The Bieri GUI is now the default and only GUI for relax. The options -b and --bieri have been removed. The -g and --gui options require no following 'bieri' argument to launch the GUI. The GUI can now be started by typing: $ relax -g or: $ relax --gui Modified: branches/bieri_gui/relax Modified: branches/bieri_gui/relax URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/relax?rev=11578&r1=11577&r2=11578&view=diff ============================================================================== --- branches/bieri_gui/relax (original) +++ branches/bieri_gui/relax Thu Sep 16 10:22:32 2010 @@ -127,11 +127,11 @@ self.interpreter = interpreter.Interpreter() self.interpreter.run(self.script_file) - # Execute the Bieri GUI. - elif mode == 'gui_bieri': + # Execute the relax GUI. + elif mode == 'gui': # Dependency check. if not dep_check.wx_module: - sys.stderr.write("Please install the wx Python module to access the Bieri GUI.\n\n") + sys.stderr.write("Please install the wx Python module to access the relax GUI.\n\n") sys.exit() # Start the relax GUI wx application. @@ -188,8 +188,7 @@ parser.add_option('-l', '--log', action='store', type='string', dest='log', help='log relax output to the file LOG_FILE', metavar='LOG_FILE') parser.add_option('--licence', action='store_true', dest='licence', default=0, help='display the licence') parser.add_option('-t', '--tee', action='store', type='string', dest='tee', help='tee relax output to stdout and the file LOG_FILE', metavar='LOG_FILE') - parser.add_option('-g', '--gui', action='store', type='string', dest='gui', default=None, help='launch the specified GUI for relax') - parser.add_option('-b', '--bieri', action='store_true', dest='gui_bieri', default=0, help='launch the Bieri GUI for relax') + parser.add_option('-g', '--gui', action='store_true', dest='gui', default=0, help='launch the relax GUI') parser.add_option('-p', '--pedantic', action='store_true', dest='pedantic', default=0, help='escalate all warnings to errors') parser.add_option('--test', action='store_true', dest='test', default=0, help='run relax in test mode') parser.add_option('-x', '--test-suite', action='store_true', dest='test_suite', default=0, help='execute the relax test suite') @@ -321,28 +320,23 @@ mode = 'script' # GUI. - elif options.gui or options.gui_bieri: + elif options.gui: # Make sure no script is supplied. if self.script_file: parser.error("a script should not be supplied in test mode") # Exclusive models. - if options.gui and options.gui != 'bieri' and options.gui_bieri: - parser.error("specifying multiple GUIs is not allowed") - elif options.test_suite or options.system_tests or options.unit_tests: + if options.test_suite or options.system_tests or options.unit_tests: parser.error("the relax GUI mode and testing modes are mutually exclusive") elif options.licence: parser.error("the relax GUI mode and licence mode are mutually exclusive") # Missing wx module. if not dep_check.wx_module: - parser.error("To use the Bieri GUI, the wx python module must be installed.") + parser.error("To use the GUI, the wx python module must be installed.") # Set the mode. - if options.gui == 'bieri' or options.gui_bieri: - mode = 'gui_bieri' - else: - parser.error("the '%s' GUI interface is unknown" % options.gui) + mode = 'gui' # Prompt mode (default). else: