目录结构:
- 项目主目录
1.axel.ui #设计文件
2.axel.py #转换过后文件
3.main.py #主文件
main.py:
from PyQt5 import QtCore, QtGui, QtWidgets
import axel # ui文件
import sys
class Windows(QtWidgets.QMainWindow, axel.Ui_MainWindow):
def __init__(self):
super().__init__()
self.setupUi(self)
def main():
windows.show()
pass
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
windows = Windows()
main()
sys.exit(app.exec_())
标签:__,模版,self,PyQt5,QtWidgets,axel,自用,main
From: https://www.cnblogs.com/Lemon-233/p/16876539.html