Example #1
0
 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
Example #2
0
 def createEvent(display, cmdIndex):
     curses.addMouseEvent(info)
     return None
Example #3
0
 def createEvent(display, cmdIndex):
     curses.addMouseEvent(info)
     return curses.KEY_MOUSE
Example #4
0
 def createEvent(display, cmdIndex):
     row, col = self.findText(screenText)
     info = (timeStamp, row, col, 0, bState)
     curses.addMouseEvent(info)
     return None