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