예제 #1
0
    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 = []
예제 #2
0
def on_key_press(symbol, modifiers):
    events.fireEvent('on_keyPress', (symbol, modifiers))
    #menu.keyPress(symbol, modifiers)
    #person.keyPress(symbol, modifiers)
    pass
예제 #3
0
def on_key_release(symbol, modifiers):
    events.fireEvent('on_keyReleas', (symbol, modifiers))
    #menu.keyRelease(symbol, modifiers)
    pass
예제 #4
0
def on_mouse_drag(x, y, dx, dy, buttons, modifiers):
    events.fireEvent('on_mouseDrag', (x, y, dx, dy, buttons, modifiers))
예제 #5
0
def on_mouse_motion(x, y, dx, dy):
    #menu.mouseMotion(x, y, dx, dy)
    events.fireEvent('on_mouseMotion', (x, y, dx, dy))
예제 #6
0
def on_mouse_release(x, y, button, modifiers):
    events.fireEvent('on_mouseRelease', (x, y, button, modifiers))
    #menu.mouseRelease(x, y, button, modifiers)
    pass
예제 #7
0
def on_mouse_press(x, y, button, modifiers):
    events.fireEvent('on_mousePress', (x, y, button, modifiers))
    #menu.mousePress(x, y, button, modifiers)
    pass