self.clicked_points=[]
+ self.measure_set=None
+
self.events_from_gui = events_from_gui
'''
self.click_flags_functions['measure_points'][0]=True
if 'num_of_points' in dir(event):
self.num_of_points=event.num_of_points
-
+ if 'set' in dir(event):
+ self.measure_set=event.set
def MeasurePoints(self,event,current_set=1):
dest=self.current_plot_dest
try:
- current_set=event.set
+ current_set=self.measure_set
except AttributeError:
pass
'''
general helper function for N-points measures
'''
- measure_points=self.list_of_events['measure_points']
- wx.PostEvent(self.frame, measure_points(num_of_points=N, set=whatset))
+ wx.PostEvent(self.frame,self.list_of_events['measure_points'](num_of_points=N, set=whatset))
while 1:
try:
points=self.frame.events_from_gui.get()