Changeset 29ef718 in sasview
- Timestamp:
- Mar 29, 2011 11:28:14 AM (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:
- 2296316
- Parents:
- 9466f2d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r788ff23 r29ef718 109 109 110 110 ## Application manager 111 self._input_file = None 111 112 self.app_manager = None 112 113 self._mgr = None … … 164 165 self.Bind(EVT_APPEND_BOOKMARK, self.append_bookmark) 165 166 167 def set_input_file(self, input_file): 168 """ 169 :param input_file: file to read 170 """ 171 self._input_file = input_file 172 166 173 def get_data_manager(self): 167 174 """ … … 200 207 # set tool bar 201 208 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) 203 215 #self._check_update(None) 204 216 … … 1855 1867 return 1856 1868 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) 1858 1870 1859 1871 … … 1869 1881 Build the GUI 1870 1882 """ 1871 self.frame.build_gui()1872 self.frame.post_init()1873 1883 #try to load file at the start 1874 1884 try: … … 1876 1886 except: 1877 1887 raise 1888 self.frame.build_gui() 1878 1889 if self.s_screen is not None and self.s_screen.IsShown(): 1879 1890 self.s_screen.Close()
Note: See TracChangeset
for help on using the changeset viewer.