Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Python
- uiload
- django
- query 최적화
- pyside6 ui
- django rank
- pip 설치
- channels
- materialized
- django role based
- 장고
- pip 오류
- django drf
- pyside6
- ERP
- optimization page
- tensorflow
- 페이지 최적화
- qwindows.dll
- django erp
- 파이썬
- qpa_plugin
- 재고 관리
- QApplication
- 중량 관리
- 장고로 ERP
- orm 최적화
- django test
- test drive development
- Self ERP
Archives
- Today
- Total
취미삼아 배우는 프로그래밍
PySide6 load .ui without convert to .py 본문
import sys
from PySide6.QtUiTools import loadUiType
from PySide6.QtWidgets import *
import os
env = os.environ
# env.setdefault("QT_DEBUG_PLUGINS","1")
# env.setdefault("QT_QPA_PLATFORM_PLUGIN_PATH", os.getcwd())
env.setdefault("QT_PLUGIN_PATH", os.getcwd())
generated_class, base_class = loadUiType("main.ui")
class UI(base_class, generated_class):
def __init__(self):
super().__init__()
self.setupUi(self)
if __name__== "__main__":
app = QApplication(sys.argv)
win = UI()
win.show()
sys.exit(app.exec())
'파이썬' 카테고리의 다른 글
PySide / Pyqt qpa_plugin error solved(Or not working QApplication) (0) | 2022.03.21 |
---|---|
잡무 기강 잡기 -1(원자재 관리) (0) | 2021.09.28 |
pip > permission denied (0) | 2020.09.15 |
파이썬 환경변수 설정 꼬였을 때, (0) | 2020.07.19 |
PDF파일 다루는 프로그램 만들어보기. (0) | 2020.07.05 |
Comments