commit: 初版V0.0.0
This commit is contained in:
@@ -13,6 +13,8 @@ class MainWindow(QMainWindow,Ui_MainWindow):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
|
|
||||||
|
self.initUI()
|
||||||
|
|
||||||
def initUI(self):
|
def initUI(self):
|
||||||
self.setWindowIcon(QIcon("main.ico"))
|
self.setWindowIcon(QIcon("main.ico"))
|
||||||
self.setWindowTitle("Model Team Tools")
|
self.setWindowTitle("Model Team Tools")
|
||||||
@@ -20,7 +22,6 @@ class MainWindow(QMainWindow,Ui_MainWindow):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
window = MainWindow()
|
main = MainWindow()
|
||||||
window.initUI()
|
main.show()
|
||||||
window.show()
|
|
||||||
sys.exit(app.exec())
|
sys.exit(app.exec())
|
||||||
|
|||||||
Reference in New Issue
Block a user