Esempio n. 1
0
 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()'))
Esempio n. 2
0
 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()'))
Esempio n. 3
0
 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()'))
Esempio n. 4
0
 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()'))
Esempio n. 5
0
 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()'))
Esempio n. 6
0
 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()'))
Esempio n. 7
0
 def __call__(self):
     diag = QApplication.activeModalWidget()
     self.test.assertIsNone(diag, "Dialog box could not be found")
 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()'))
Esempio n. 9
0
 def __call__(self):
     diag = QApplication.activeModalWidget()
     self.test.assertIsNone(diag, "Dialog box could not be found")