|
- from Ui_ea_ui import Ui_Dialog
- class export(QDialog, Ui_Dialog):
- def __init__(self, parent = None):
- QDialog.__init__(self, parent)
- self.setupUi(self)
- @pyqtSignature("")
- def on_pushButton_2_clicked(self):
- self.connect(self.pushButton_2,QtCore.SIGNAL('clicked()'), QtGui.qApp, QtCore.SLOT('quit()'))
- if __name__ == "__main__":
- app = QtGui.QApplication(sys.argv)
- ea = ea_export()
- ea.show()
- sys.exit(app.exec_())
复制代码
|
|