Changeset 6450d8c in sasview for sansview/perspectives/fitting/fitpanel.py
- Timestamp:
- Jul 27, 2010 4:37:01 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:
- 8898e963
- Parents:
- 330c63b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpanel.py
r72a6bf8 r6450d8c 4 4 import wx 5 5 import wx.aui 6 6 from sans.guicomm.events import NewPlotEvent, StatusEvent 7 7 import basepage 8 8 … … 212 212 if state is not None: 213 213 page_info = self.get_page_info(data=state.data) 214 if hasattr(state.data,"title"): 215 title = str(state.data.title.lstrip().rstrip()) 216 if title == "": 217 title = str(state.data.name) 218 else: 219 title = str(state.data.name) 214 220 for name, panel, type in self.opened_pages.values(): 215 221 #Don't return any panel is the exact same page is created … … 227 233 self.manager.store_page(page=panel, data=state.data) 228 234 panel.reset_page(state=state) 235 wx.PostEvent(self.parent, NewPlotEvent(plot=state.data, title=title)) 229 236 page_is_opened = True 230 237 … … 235 242 self.manager.store_page(page=panel, data=state.data) 236 243 panel.reset_page(state=state) 244 wx.PostEvent(self.parent, NewPlotEvent(plot=state.data, title=title)) 237 245 238 246 def on_close_page(self, event):
Note: See TracChangeset
for help on using the changeset viewer.