Changeset 64e44c1 in sasview for guiframe


Ignore:
Timestamp:
Apr 6, 2011 2:40:35 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

revert some code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r1b1bbf9 r64e44c1  
    222222            self.load_from_cmd(self._input_file) 
    223223        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 
    225228        self.post_init() 
    226229        self.show_welcome_panel(None) 
    227230        self.Show(True) 
    228         self._check_update(None) 
    229      
    230              
     231        #self._check_update(None) 
     232              
    231233    def _setup_layout(self): 
    232234        """ 
     
    450452        data_pane = self._mgr.GetPane(self.panels["data_panel"].window_name) 
    451453        if style != GUIFRAME.MANAGER_ON: 
    452             data_pane.Hide() 
     454            self._mgr.GetPane(self.panels["data_panel"].window_name).Hide() 
    453455        else: 
    454             data_pane.Show() 
    455          
    456     
     456            self._mgr.GetPane(self.panels["data_panel"].window_name).Show() 
     457             
    457458        # Add the panels to the AUI manager 
    458459        for panel_class in panels: 
     
    601602             
    602603        pane = self._mgr.GetPane(windowname) 
    603         #self._mgr.MaximizePane(pane) 
    604         #self._mgr.RestoreMaximizedPane() 
     604        self._mgr.MaximizePane(pane) 
     605        self._mgr.RestoreMaximizedPane() 
    605606        # Register for showing/hiding the panel 
    606607        wx.EVT_MENU(self, ID, self._on_view) 
     
    20442045            if os.path.isfile(cmd): 
    20452046                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]: 
    20472050                    input_file = sys.argv[1] 
    20482051        if input_file is None: 
Note: See TracChangeset for help on using the changeset viewer.