Changeset 5fb59f0 in sasview for sansguiframe
- Timestamp:
- Mar 28, 2013 12:31:04 PM (12 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:
- 397b4e7
- Parents:
- 3b148c3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
ra602942e r5fb59f0 1994 1994 panel.Hide() 1995 1995 self.get_data(path) 1996 wx.PostEvent(self, StatusEvent(status="Completed loading.")) 1997 else: 1998 wx.PostEvent(self, StatusEvent(status=" ")) 1996 1999 if self.defaultPanel is not None and \ 1997 2000 self._mgr.GetPane(self.panels["default"].window_name).IsShown(): … … 2060 2063 if self._default_save_location == None: 2061 2064 self._default_save_location = os.getcwd() 2062 2065 wx.PostEvent(self, StatusEvent(status="Loading Analysis file...")) 2063 2066 plug_wlist = self._on_open_state_app_helper() 2064 2067 dlg = wx.FileDialog(self, … … 2111 2114 if self._default_save_location == None: 2112 2115 self._default_save_location = os.getcwd() 2113 2116 wx.PostEvent(self, StatusEvent(status="Loading Project file...")) 2114 2117 dlg = wx.FileDialog(self, 2115 2118 "Choose a file", … … 2126 2129 # #self.Close() 2127 2130 #except: 2131 2128 2132 self.load_state(path=path) 2129 2133 … … 2134 2138 if self.cpanel_on_focus is not None: 2135 2139 try: 2140 wx.PostEvent(self, 2141 StatusEvent(status="Saving Analysis file...")) 2136 2142 self.cpanel_on_focus.on_save(event) 2143 wx.PostEvent(self, 2144 StatusEvent(status="Completed saving.")) 2137 2145 except: 2138 2146 msg = "Error occurred while saving: " … … 2146 2154 if self._current_perspective is None: 2147 2155 return 2156 wx.PostEvent(self, StatusEvent(status="Saving Project file...")) 2148 2157 reader, ext = self._current_perspective.get_extensions() 2149 2158 path = None … … 2176 2185 fd.write(doc.toprettyxml()) 2177 2186 fd.close() 2187 wx.PostEvent(self, StatusEvent(status="Completed Saving.")) 2178 2188 else: 2179 2189 msg = "%s cannot read %s\n" % (str(APPLICATION_NAME), str(path))
Note: See TracChangeset
for help on using the changeset viewer.