Пример #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")
Пример #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
Пример #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")
Пример #4
0
 def Destroy(self, *args, **kw):
     self.shown = False
     Logger.add_result("Dialog '%s' closed" % self.GetLabel())
     wxColourDialog.Destroy(self, *args, **kw)
Пример #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)
Пример #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
Пример #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)
Пример #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()
Пример #9
0
 def Destroy(self, *args, **kw):
     self.shown = False
     Logger.add_result("Dialog '%s' closed" % self.GetLabel())
     wxColourDialog.Destroy(self, *args, **kw)
Пример #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)
Пример #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")
 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()