Example #1
0
 def testQDialog(self):
     dlg = QInputDialog()
     dlg.setInputMode(QInputDialog.TextInput)
     lst = dlg.children()
     self.assert_(len(lst))
     obj = lst[0]
     self._called = False
     obj.destroyed[QObject].connect(self.cb)
     obj = None
     del dlg
     self.assert_(self._called)
 def testQDialog(self):
     dlg = QInputDialog()
     dlg.setInputMode(QInputDialog.TextInput)
     lst = dlg.children()
     self.assert_(len(lst))
     obj = lst[0]
     self._called = False
     obj.destroyed[QObject].connect(self.cb)
     obj = None
     del dlg
     self.assert_(self._called)