Changeset 2bdb52b in sasview for guiframe/local_perspectives/plotting
- Timestamp:
- Mar 10, 2011 6:09:46 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:
- ae4ade7
- Parents:
- 00b76931
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/plotting.py
r00b76931 r2bdb52b 101 101 return False 102 102 103 def create_panel_helper(self, new_panel, data, group_id ):103 def create_panel_helper(self, new_panel, data, group_id, title=None): 104 104 """ 105 105 """ … … 108 108 new_panel.set_manager(self) 109 109 new_panel.group_id = group_id 110 title = data.title 110 if title is None: 111 title = data.title 111 112 new_panel.window_caption = title 112 new_panel.window_name = title113 new_panel.window_name = data.title 113 114 event_id = self.parent.popup_panel(new_panel) 114 115 #remove the default item in the menu … … 208 209 if event.action.lower() == 'delete': 209 210 return self.delete_panel(group_id) 211 title = None 212 if hasattr(event, 'title'): 213 title = event.title 210 214 211 215 data = event.plot … … 225 229 else: 226 230 new_panel = self.create_2d_panel(data, group_id) 227 self.create_panel_helper(new_panel, data, group_id )231 self.create_panel_helper(new_panel, data, group_id, title) 228 232 229 233 return
Note: See TracChangeset
for help on using the changeset viewer.