Changeset fd51a7c in sasview for sansguiframe/src/sans/guiframe/local_perspectives
- Timestamp:
- Oct 12, 2011 4:04:01 PM (13 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:
- 26fc866
- Parents:
- da6fd1a
- Location:
- sansguiframe/src/sans/guiframe/local_perspectives/plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
r18253cd rfd51a7c 164 164 self.plots = {} 165 165 if self.is_zoomed: 166 166 self.is_zoomed = False 167 167 168 168 def _OnReSize(self, event): … … 279 279 if self.is_zoomed: 280 280 self.is_zoomed = False 281 281 282 282 283 283 def draw_plot(self): … … 287 287 self.draw() 288 288 289 290 291 289 def onLeftDown(self,event): 292 290 """ -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/plotting.py
r0f17dd9 rfd51a7c 125 125 if group_id in self.plot_panels.keys(): 126 126 panel = self.plot_panels[group_id] 127 for plottable in panel.graph.plottables.keys(): 128 self.remove_plot(group_id, plottable.id) 127 129 panel.graph.reset() 128 130 return True 129 131 return False 130 132 131 132 133 def hide_panel(self, group_id): 133 134 """ … … 275 276 if group_id in self.plot_panels.keys(): 276 277 #remove data from panel 277 if event.action.lower() == 'remove':278 if event.action.lower().strip() == 'remove': 278 279 id = event.id 279 280 return self.remove_plot(group_id, id) 280 if event.action.lower() == 'hide':281 if event.action.lower().strip() == 'hide': 281 282 return self.hide_panel(group_id) 282 if event.action.lower() == 'delete':283 if event.action.lower().strip() == 'delete': 283 284 panel = self.plot_panels[group_id] 284 285 uid = panel.uid 285 286 return self.parent.delete_panel(uid) 286 if event.action.lower() == "clear":287 if event.action.lower().strip() == "clear": 287 288 return self.clear_panel_by_id(group_id) 288 289 if not hasattr(event, 'plot'):
Note: See TracChangeset
for help on using the changeset viewer.