示例#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