Ejemplo n.º 1
0
 def click_mouse(self, position):
     try:
         self._send_lbutton_click_to_window(position)
         Logger.add_result("Mouse clicked at (%d, %d)" %
                           (position[0], position[1]))
     except NotFoundException:
         Logger.add_error("Mouse click failed")
Ejemplo n.º 2
0
def MessageBox(*args, **kw):
    Logger.add_result("MessageBox '%s' opened" % args[1])
    wx.CallLater(TIME_TO_WAIT_FOR_DIALOG_TO_SHOW_IN_MILLISECONDS,
                 _explore_and_register)
    rv = wxMessageBox(*args, **kw)
    Logger.add_result("MessageBox '%s' closed" % args[1])
    return rv
Ejemplo n.º 3
0
 def execute(self, manuscript, win):
     # Everything ends here so we don't bother to call Instruction.execute
     manuscript.get_application_frame().Destroy()
     Logger.add_result("Application destroyed")
Ejemplo n.º 4
0
 def Destroy(self, *args, **kw):
     self.shown = False
     Logger.add_result("Dialog '%s' closed" % self.GetLabel())
     wxColourDialog.Destroy(self, *args, **kw)
Ejemplo n.º 5
0
 def ShowModal(self, *args, **kw):
     self.shown = True
     Logger.add_result("Dialog opened")
     wx.CallLater(TIME_TO_WAIT_FOR_DIALOG_TO_SHOW_IN_MILLISECONDS,
                  self._register_and_explore)
     super(ColourDialog, self).ShowModal(*args, **kw)
Ejemplo n.º 6
0
def MessageBox(*args, **kw):
    Logger.add_result("MessageBox '%s' opened" % args[1])
    wx.CallLater(TIME_TO_WAIT_FOR_DIALOG_TO_SHOW_IN_MILLISECONDS, _explore_and_register)
    rv =  wxMessageBox(*args, **kw)
    Logger.add_result("MessageBox '%s' closed" % args[1])
    return rv
Ejemplo n.º 7
0
 def __init__(self, *args, **kw):
     Logger.add_result("AboutBox opened")
     wx.CallLater(TIME_TO_WAIT_FOR_DIALOG_TO_SHOW_IN_MILLISECONDS, self._register_and_explore)
     wxAboutBox(*args, **kw)
Ejemplo n.º 8
0
 def ShowModal(self):
     Logger.add_result("MessageDialog opened")
     wx.CallLater(TIME_TO_WAIT_FOR_DIALOG_TO_SHOW_IN_MILLISECONDS, 
                  self._explore, MessageDialog.listener)
     super(MessageDialog, self).ShowModal()
Ejemplo n.º 9
0
 def Destroy(self, *args, **kw):
     self.shown = False
     Logger.add_result("Dialog '%s' closed" % self.GetLabel())
     wxColourDialog.Destroy(self, *args, **kw)
Ejemplo n.º 10
0
 def ShowModal(self, *args, **kw):
     self.shown = True
     Logger.add_result("Dialog opened")
     wx.CallLater(TIME_TO_WAIT_FOR_DIALOG_TO_SHOW_IN_MILLISECONDS, self._register_and_explore)
     super(ColourDialog, self).ShowModal(*args, **kw)
Ejemplo n.º 11
0
 def click_mouse(self, position):
     try:
         self._send_lbutton_click_to_window(position)
         Logger.add_result("Mouse clicked at (%d, %d)" % (position[0], position[1]))
     except NotFoundException:
         Logger.add_error("Mouse click failed")
Ejemplo n.º 12
0
 def ShowModal(self):
     Logger.add_result("MessageDialog opened")
     wx.CallLater(TIME_TO_WAIT_FOR_DIALOG_TO_SHOW_IN_MILLISECONDS,
                  self._explore, MessageDialog.listener)
     super(MessageDialog, self).ShowModal()