Changeset 29ef718 in sasview


Ignore:
Timestamp:
Mar 29, 2011 11:28:14 AM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
2296316
Parents:
9466f2d6
Message:

load file before splashpage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r788ff23 r29ef718  
    109109         
    110110        ## Application manager 
     111        self._input_file = None 
    111112        self.app_manager = None 
    112113        self._mgr = None 
     
    164165        self.Bind(EVT_APPEND_BOOKMARK, self.append_bookmark) 
    165166     
     167    def set_input_file(self, input_file): 
     168        """ 
     169        :param input_file: file to read 
     170        """ 
     171        self._input_file = input_file 
     172         
    166173    def get_data_manager(self): 
    167174        """ 
     
    200207        # set tool bar 
    201208        self._setup_tool_bar() 
    202         #self.Fit() 
     209        try: 
     210            self.load_from_cmd(self._input_file) 
     211        except: 
     212            pass 
     213        self.post_init() 
     214        self.Show(True) 
    203215        #self._check_update(None) 
    204216              
     
    18551867            return 
    18561868        if self.frame is not None: 
    1857             self.frame.load_from_cmd(path=input_file) 
     1869            self.frame.set_input_file(input_file=input_file) 
    18581870          
    18591871             
     
    18691881        Build the GUI 
    18701882        """ 
    1871         self.frame.build_gui() 
    1872         self.frame.post_init() 
    18731883        #try to load file at the start 
    18741884        try: 
     
    18761886        except: 
    18771887            raise 
     1888        self.frame.build_gui() 
    18781889        if self.s_screen is not None and self.s_screen.IsShown(): 
    18791890            self.s_screen.Close() 
Note: See TracChangeset for help on using the changeset viewer.