import sys
from PyQt5 import uic
from PyQt5.QtWidgets import QMainWindow, QApplication
form_class = uic.loadUiType('./window_main.ui')[0]
class MyWindow(QMainWindow, form_class):
def __init__(self):
super().__init__()
self.setupUi(self)
if __name__ == "__main__":
app = QApplication(sys.argv)
myApp = MyWindow()
myApp.show()
app.exec_()
댓글 없음:
댓글 쓰기