diff --git a/scripts/init.py b/scripts/init.py index e175e08446fbcb198294093850999b1f3dade0ea..eb112990c73e1f2716119236fc7def6e50dd7c9c 100644 --- a/scripts/init.py +++ b/scripts/init.py @@ -70,10 +70,11 @@ def _InitPanels(app): return True -def _InitFrontEnd(): +def _InitFrontEnd(try_stereo): _CheckRestore() app=gui.GostyApp.Instance() app.SetAppTitle("DNG") + app.TryStereo(try_stereo) main_area=app.perspective.main_area _InitMenuBar(app) _InitSpaceNav(app) @@ -159,6 +160,7 @@ parser.add_option("-p", "--pdb_id", dest="pdb_ids", default=[],action="append", parser.add_option("-b", "--builder", dest="builder", default="HEURISTIC", help="Type of builder used by the progam (either RULE_BASED or HEURISTIC) [default: %default]") parser.add_option("-c", "--compound_library", dest="complib", default="compounds.chemlib", help="Compound library for the RULE_BASED builder (only used if --builder option is set to RULE_BASED, otherwise ignored [default: %default]") parser.add_option("-q", "--query", dest="query", default="", help="Selection query to be highlighted automatically upon loading (only used together with -p option or when a PDB file is loaded, otherwise ignored [default: None]") +parser.add_option("-S","--stereo", dest="try_stereo", default=False, action="store_true",help="try to get a quad-buffer stereo visual") parser.disable_interspersed_args() (options, args) = parser.parse_args() @@ -203,7 +205,7 @@ working_dir=settings.GetValue("DNG_WORKING_DIR",None) if working_dir != None and os.path.isdir(working_dir): os.chdir(working_dir) -_InitFrontEnd() +_InitFrontEnd(options.try_stereo) if len(loading_list)!=0 or len(options.pdb_ids)!=0: _load_files()