def __call__(self): diag = QApplication.activeModalWidget() self.test.assertIsNotNone(diag, "Warning dialog box could not be found") if (diag != None): cbox = diag.findChild(QtGui.QComboBox) self.test.assertIsNotNone(cbox, "ComboBox widget could not be found") if (cbox != None): QtCore.QTimer.singleShot(0, diag, QtCore.SLOT('accept()'))
def __call__(self): diag = QApplication.activeModalWidget() self.test.assertIsNotNone(diag, "Dialog box could not be found") if (diag != None): cbuttons = diag.findChildren(QtGui.QPushButton) cbutton = cbuttons[1] dialogcheck = CallableCheckDialog(self.test) QtCore.QTimer.singleShot(500, dialogcheck) QtCore.QTimer.singleShot(0, cbutton, QtCore.SLOT('click()'))
def __call__(self): diag = QApplication.activeModalWidget() self.test.assertIsNotNone(diag, "Dialog box could not be found") if (diag != None): cbuttons = diag.findChildren(QtGui.QPushButton) cbuttons = [but for but in cbuttons if but.text() == u'Migrate manually'] self.test.assertEqual(len(cbuttons), 1, "Button could not be found") cbutton = cbuttons[0] dialogcheck = CallableCheckDialog(self.test) QtCore.QTimer.singleShot(500, dialogcheck) QtCore.QTimer.singleShot(0, cbutton, QtCore.SLOT('click()'))
def __call__(self): diag = QApplication.activeModalWidget() self.test.assertIsNotNone(diag, "Dialog box could not be found") if (diag != None): cbuttons = diag.findChildren(QtGui.QPushButton) cbuttons = [ but for but in cbuttons if but.text() == u'Migrate manually' ] self.test.assertEqual(len(cbuttons), 1, "Button could not be found") cbutton = cbuttons[0] dialogcheck = CallableCheckDialog(self.test) QtCore.QTimer.singleShot(500, dialogcheck) QtCore.QTimer.singleShot(0, cbutton, QtCore.SLOT('click()'))
def __call__(self): diag = QApplication.activeModalWidget() self.test.assertIsNotNone(diag, "Input dialog box could not be found") if (diag != None): QtCore.QTimer.singleShot(0, diag, QtCore.SLOT('accept()'))
def __call__(self): diag = QApplication.activeModalWidget() self.test.assertIsNone(diag, "Dialog box could not be found")