Changeset 64e44c1 in sasview
- Timestamp:
- Apr 6, 2011 2:40:35 PM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- dd8ee14
- Parents:
- ba64348
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r1b1bbf9 r64e44c1 222 222 self.load_from_cmd(self._input_file) 223 223 except: 224 pass 224 msg = "%s Cannot load file %s\n" %(str(APPLICATION_NAME), 225 str(self._input_file)) 226 msg += str(sys.exc_value) + '\n' 227 print msg 225 228 self.post_init() 226 229 self.show_welcome_panel(None) 227 230 self.Show(True) 228 self._check_update(None) 229 230 231 #self._check_update(None) 232 231 233 def _setup_layout(self): 232 234 """ … … 450 452 data_pane = self._mgr.GetPane(self.panels["data_panel"].window_name) 451 453 if style != GUIFRAME.MANAGER_ON: 452 data_pane.Hide()454 self._mgr.GetPane(self.panels["data_panel"].window_name).Hide() 453 455 else: 454 data_pane.Show() 455 456 456 self._mgr.GetPane(self.panels["data_panel"].window_name).Show() 457 457 458 # Add the panels to the AUI manager 458 459 for panel_class in panels: … … 601 602 602 603 pane = self._mgr.GetPane(windowname) 603 #self._mgr.MaximizePane(pane)604 #self._mgr.RestoreMaximizedPane()604 self._mgr.MaximizePane(pane) 605 self._mgr.RestoreMaximizedPane() 605 606 # Register for showing/hiding the panel 606 607 wx.EVT_MENU(self, ID, self._on_view) … … 2044 2045 if os.path.isfile(cmd): 2045 2046 basename = os.path.basename(cmd) 2046 if basename in ['sansview.py', 'sansview.exe']: 2047 app_py = str(APPLICATION_NAME).lower() + '.py' 2048 app_exe = str(APPLICATION_NAME).lower() + '.exe' 2049 if basename.lower() in [app_py, app_exe]: 2047 2050 input_file = sys.argv[1] 2048 2051 if input_file is None:
Note: See TracChangeset
for help on using the changeset viewer.