Changeset e85e2bc in sasview for sansguiframe/src
- Timestamp:
- Sep 4, 2011 4:41:15 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:
- 2259920
- Parents:
- 53cf669
- Location:
- sansguiframe/src/sans/guiframe/local_perspectives/plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
r53cf669 re85e2bc 276 276 Display the position of the mouse on the statusbar 277 277 """ 278 PlotPanel.onLeftDown(self, event) 278 PlotPanel.onLeftDown(self, event) 279 ax = event.inaxes 280 if ax != None: 281 # data coordinate position 282 pos_x = "%8.3g"% event.xdata 283 pos_y = "%8.3g"% event.ydata 284 position = "x: %s y: %s" % (pos_x, pos_y) 285 wx.PostEvent(self.parent, StatusEvent(status=position)) 279 286 # unfocus all 280 287 self.parent.set_plot_unfocus() -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter2D.py
r53cf669 re85e2bc 144 144 # Check that the LEFT button was pressed 145 145 PlotPanel.onLeftDown(self, event) 146 146 ax = event.inaxes 147 if ax != None: 148 # data coordinate position 149 pos_x = "%8.3g"% event.xdata 150 pos_y = "%8.3g"% event.ydata 151 position = "x: %s y: %s" % (pos_x, pos_y) 152 wx.PostEvent(self.parent, StatusEvent(status=position)) 147 153 self.plottable_selected(self.data2D.id) 148 154 self._manager.set_panel_on_focus(self)
Note: See TracChangeset
for help on using the changeset viewer.