Changeset 383189f9 in sasview for guiframe/local_perspectives
- Timestamp:
- May 7, 2008 5:16:37 PM (16 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:
- 2e07e8f
- Parents:
- 792d7665
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/plotting.py
r41d466f r383189f9 35 35 # tied to any perspective 36 36 ALWAYS_ON = True 37 ## Group ID 38 group_id = None 37 39 38 40 def __init__(self, parent, id = -1, color = None,\ … … 216 218 if event.plot._xunit == panel.graph.prop["xunit"] \ 217 219 and event.plot._yunit == panel.graph.prop["yunit"]: 218 is_available = True 219 panel._onEVT_1DREPLOT(event) 220 self.parent.show_panel(panel.uid) 220 if hasattr(event.plot, "group_id"): 221 if not event.plot.group_id==None \ 222 and event.plot.group_id==panel.group_id: 223 is_available = True 224 panel._onEVT_1DREPLOT(event) 225 self.parent.show_panel(panel.uid) 226 else: 227 # Check that the plot panel has no group ID 228 if panel.group_id==None: 229 is_available = True 230 panel._onEVT_1DREPLOT(event) 231 self.parent.show_panel(panel.uid) 221 232 222 233 # Create a new plot panel if none was available 223 234 if not is_available: 224 235 new_panel = View1DPanel(self.parent, -1, style=wx.RAISED_BORDER) 236 # Set group ID if available 237 group_id_str = '' 238 if hasattr(event.plot, "group_id"): 239 if not event.plot.group_id==None: 240 new_panel.group_id = event.plot.group_id 241 group_id_str = ' [%s]' % event.plot.group_id 242 225 243 if hasattr(event, "title"): 226 244 new_panel.window_caption = event.title 227 245 new_panel.window_name = event.title 246 #new_panel.window_caption = event.title+group_id_str 247 #new_panel.window_name = event.title+group_id_str 228 248 229 249 event_id = self.parent.popup_panel(new_panel)
Note: See TracChangeset
for help on using the changeset viewer.