Exemplo 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()'))
Exemplo 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()'))
Exemplo 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()'))
Exemplo 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()'))
Exemplo 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()'))
Exemplo 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()'))
Exemplo n.º 7
0
 def __call__(self):
     diag = QApplication.activeModalWidget()
     self.test.assertIsNone(diag, "Dialog box could not be found")
Exemplo n.º 8
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()'))
Exemplo n.º 9
0
 def __call__(self):
     diag = QApplication.activeModalWidget()
     self.test.assertIsNone(diag, "Dialog box could not be found")