Example #1
0
 def on_event(self, event):
     '''pass events to the parent'''
     state = self.state
     if (isinstance(event, wx.MouseEvent) and
         not event.ButtonIsDown(wx.MOUSE_BTN_ANY) and
         event.GetWheelRotation() == 0):
         # don't flood the queue with mouse movement
         return
     state.out_queue.put(mp_util.object_container(event))
Example #2
0
 def on_event(self, event):
     '''pass events to the parent'''
     state = self.state
     if (isinstance(event, wx.MouseEvent) and
         not event.ButtonIsDown(wx.MOUSE_BTN_ANY) and
         event.GetWheelRotation() == 0):
         # don't flood the queue with mouse movement
         return
     state.out_queue.put(mp_util.object_container(event))
Example #3
0
 def __init__(self, latlon, event, selected):
     self.latlon = latlon
     self.event = mp_util.object_container(event)
     self.selected = selected
Example #4
0
 def __init__(self, latlon, event, selected):
     self.latlon = latlon
     self.event = mp_util.object_container(event)
     self.selected = selected