def consumeQueue(self): for count in range(len(self.IncomingQueue)): msg = self.IncomingQueue[count] if msg.startswith('***'): for textStr in self.TextFunctions.keys(): mObj = re.match(textStr, msg) if mObj: events.fireEvent(self.TextFunctions[textStr], mObj.groups()) self.IncomingQueue = []
def on_key_press(symbol, modifiers): events.fireEvent('on_keyPress', (symbol, modifiers)) #menu.keyPress(symbol, modifiers) #person.keyPress(symbol, modifiers) pass
def on_key_release(symbol, modifiers): events.fireEvent('on_keyReleas', (symbol, modifiers)) #menu.keyRelease(symbol, modifiers) pass
def on_mouse_drag(x, y, dx, dy, buttons, modifiers): events.fireEvent('on_mouseDrag', (x, y, dx, dy, buttons, modifiers))
def on_mouse_motion(x, y, dx, dy): #menu.mouseMotion(x, y, dx, dy) events.fireEvent('on_mouseMotion', (x, y, dx, dy))
def on_mouse_release(x, y, button, modifiers): events.fireEvent('on_mouseRelease', (x, y, button, modifiers)) #menu.mouseRelease(x, y, button, modifiers) pass
def on_mouse_press(x, y, button, modifiers): events.fireEvent('on_mousePress', (x, y, button, modifiers)) #menu.mousePress(x, y, button, modifiers) pass