Changeset 8897:d7baa7155e26 in orange


Ignore:
Timestamp:
09/02/11 15:03:19 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
70cda78e11a7a1721b598f753f4050a898d32918
Message:

Do not throw an error if the widget does not support moving points.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owplot.py

    r8896 r8897  
    12021202        a = self.mouse_action(event) 
    12031203 
    1204         if a == SELECT: 
     1204        if a == SELECT and hasattr(self, 'move_selected_points'): 
    12051205            self._pressed_point = self.nearest_point(point) 
    12061206            self._pressed_point_coor = None  
     
    12381238        a = self.mouse_action(event) 
    12391239         
    1240         if a == SELECT and self._pressed_point is not None: 
     1240        if a == SELECT and self._pressed_point is not None and hasattr(self, 'move_selected_points'): 
    12411241            animate_points = self.animate_points 
    12421242            self.animate_points = False 
Note: See TracChangeset for help on using the changeset viewer.