Changeset 2171 for trunk/python
- Timestamp:
- 05/17/11 19:21:35 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/customgui_base.py
r2170 r2171 696 696 'worldx': [event.xdata,event.xdata]} 697 697 self.plotter._plotter.register('button_press',None) 698 self.xold = event.x 699 self.xdataold = event.xdata 698 700 self.plotter._plotter.register('motion_notify', self._xspan_draw) 699 701 self.plotter._plotter.register('button_press', self._xspan_end) … … 702 704 if event.inaxes == self._thisregion['axes']: 703 705 xnow = event.x 704 self.xdataold = xnow 706 self.xold = xnow 707 self.xdataold = event.xdata 705 708 else: 706 xnow = self.x dataold709 xnow = self.xold 707 710 try: self.lastspan 708 711 except AttributeError: pass … … 747 750 self._selregions[srow] = [] 748 751 self._selregions[srow].append(lregion) 749 del lregion, pregion, xdataend 752 del lregion, pregion, xdataend, self.xold, self.xdataold 750 753 sout = "selected region: "+str(self._thisregion['worldx'])+\ 751 754 "(@row "+str(self._getrownum(self._thisregion['axes']))+")"
Note:
See TracChangeset
for help on using the changeset viewer.