PyQt5 가이드
2024. 4. 16. 03:18ㆍPROGRAMMING/Python
1. uic로 ui 파일 불러오기
from PyQt5 import uic
form_class = uic.loadUiType("main_window.ui")[0]
class MyWindow(QMainWindow, form_class):
def __init__(self):
super().__init__()
self.setupUi(self)
if __name__ == "__main__":
app = QApplication(sys.argv)
myWindow = MyWindow()
myWindow.show()
app.exec_()
2. Serial module 설치
pip uninstall serial
pip install pyserial
'PROGRAMMING > Python' 카테고리의 다른 글
VScode+Anaconda 설치 및 설정 방법 (0) | 2024.04.16 |
---|