def __init__(self, parent): QDialog.__init__(self, parent) self.ui = Ui_AboutDialog() self.ui.setupUi(self) self._main = parent settings = QSettings() self.ui.buttonClose.clicked.connect(self.onButtonClose)
class aboutDialog(QDialog): def __init__(self, parent): QDialog.__init__(self, parent) self.ui = Ui_AboutDialog() self.ui.setupUi(self) self._main = parent settings = QSettings() self.ui.buttonClose.clicked.connect(self.onButtonClose) def onButtonClose(self): self.reject()
class aboutDialog(QtGui.QDialog): def __init__(self, parent): QtGui.QDialog.__init__(self) self.ui = Ui_AboutDialog() self.ui.setupUi(self) self._main = parent settings = QSettings() QObject.connect(self.ui.buttonClose, SIGNAL("clicked(bool)"), self.onButtonClose) def onButtonClose(self): self.reject()