def createEvent(display, cmdIndex): row, col = self.findText(screenText) if row < 0: output = u"%s at index %d, did not find %r" % ( callerText, cmdIndex, screenText) if self.cursesScreen.movie: print(output) else: self.fail(output) # Note that the mouse info is x,y (col, row). info = (timeStamp, col, row, 0, bState) curses.addMouseEvent(info) return None
def createEvent(display, cmdIndex): curses.addMouseEvent(info) return None
def createEvent(display, cmdIndex): curses.addMouseEvent(info) return curses.KEY_MOUSE
def createEvent(display, cmdIndex): row, col = self.findText(screenText) info = (timeStamp, row, col, 0, bState) curses.addMouseEvent(info) return None