Changeset 4101eea in sasview


Ignore:
Timestamp:
Jun 12, 2008 9:33:36 AM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
ac9c465
Parents:
2310d69
Message:

dragging working better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guitools/PlotPanel.py

    r38fc601 r4101eea  
    187187        ax = event.inaxes 
    188188        if ax !=None: 
    189             x,y = event.x,event.y 
     189             
    190190            #print "these are x %f and y %f"%(x,y) 
    191             self.xInit,self.yInit=ax.transAxes.inverse_xy_tup((x,y)) 
    192             #print "this is xInit %f this is yInit %f"%(self.xInit, self.yInit) 
     191            self.xInit,self.yInit=event.xdata,event.ydata 
     192            print "this is xInit %f this is yInit %f"%(self.xInit, self.yInit) 
    193193    def onLeftUp(self,event):  
    194194        """ Dragging is done """ 
     
    224224            ax = event.inaxes 
    225225            if ax !=None: 
    226                 x,y = event.x,event.y 
    227                 self.xFinal,self.yFinal=ax.transAxes.inverse_xy_tup((x,y)) 
     226                self.xFinal,self.yFinal=event.xdata,event.ydata 
    228227                 
    229228                xdelta = self.xFinal -self.xInit 
Note: See TracChangeset for help on using the changeset viewer.