Esempio n. 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))
Esempio n. 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))
Esempio n. 3
0
 def __init__(self, latlon, event, selected):
     self.latlon = latlon
     self.event = mp_util.object_container(event)
     self.selected = selected
Esempio n. 4
0
 def __init__(self, latlon, event, selected):
     self.latlon = latlon
     self.event = mp_util.object_container(event)
     self.selected = selected