Changeset 9a3adab in sasview


Ignore:
Timestamp:
Jul 8, 2008 11:32:08 AM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
1c94a9f1
Parents:
1b0b3ca
Message:

Added mouse location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/plotting.py

    rd0802c3 r9a3adab  
    115115        self.graph.render(self) 
    116116        self.subplot.figure.canvas.draw_idle() 
     117 
     118    def onLeftDown(self,event):  
     119        """ left button down and ready to drag""" 
     120        from sans.guicomm.events import StatusEvent     
     121        PlotPanel.onLeftDown(self, event) 
     122        ax = event.inaxes 
     123        if ax != None: 
     124            position = "x: %8.3g    y: %8.3g" % (event.xdata, event.ydata) 
     125            wx.PostEvent(self.parent, StatusEvent(status=position)) 
     126 
    117127 
    118128    def onContextMenu(self, event): 
Note: See TracChangeset for help on using the changeset viewer.