Changeset b91c736 in sasview for guiframe/local_perspectives
- Timestamp:
- Mar 19, 2010 3:09:45 PM (15 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:
- 837a043
- Parents:
- d2f1595
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter1D.py
r21d99c2 rb91c736 24 24 from sans.guicomm.events import EVT_NEW_PLOT 25 25 from sans.guicomm.events import StatusEvent ,NewPlotEvent,SlicerEvent,ErrorDataEvent 26 from sans.guicomm.events import RemoveDataEvent 26 from sans.guicomm.events import RemoveDataEvent, AddManyDataEvent 27 27 from sans.guiframe.utils import PanelMenu 28 28 from sans.guiframe.dataFitting import Data1D … … 79 79 self.graph.yaxis("\\rm{Intensity} ","cm^{-1}") 80 80 self.graph.render(self) 81 82 81 82 def on_kill_focus(self, event): 83 """ 84 reset the panel color and post even just after the panel has been on 85 focus to make sure the group_id is filled after _onEVT_1DREPLOT 86 is called 87 """ 88 self.SetColor(None) 89 self.draw() 90 #post nd event to notify guiframe that this panel is on focus 91 wx.PostEvent(self.parent, AddManyDataEvent(panel=self)) 92 83 93 def _reset(self): 84 94 """ … … 88 98 self.plots = {} 89 99 self.action_ids = {} 90 91 100 92 101 def _onEVT_1DREPLOT(self, event): … … 157 166 else: 158 167 self._on_add_errors( evt=None) 159 return160 168 161 169 def onLeftDown(self,event): … … 169 177 position = "x: %8.3g y: %8.3g" % (event.xdata, event.ydata) 170 178 wx.PostEvent(self.parent, StatusEvent(status=position)) 171 172 179 173 180 def _onRemove(self, event): 174 181 """
Note: See TracChangeset
for help on using the changeset viewer.