Example #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 = []
Example #2
0
def on_key_press(symbol, modifiers):
    events.fireEvent('on_keyPress', (symbol, modifiers))
    #menu.keyPress(symbol, modifiers)
    #person.keyPress(symbol, modifiers)
    pass
Example #3
0
def on_key_release(symbol, modifiers):
    events.fireEvent('on_keyReleas', (symbol, modifiers))
    #menu.keyRelease(symbol, modifiers)
    pass
Example #4
0
def on_mouse_drag(x, y, dx, dy, buttons, modifiers):
    events.fireEvent('on_mouseDrag', (x, y, dx, dy, buttons, modifiers))
Example #5
0
def on_mouse_motion(x, y, dx, dy):
    #menu.mouseMotion(x, y, dx, dy)
    events.fireEvent('on_mouseMotion', (x, y, dx, dy))
Example #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
Example #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