728x90
반응형
if __name__ == '__main__':
from PySide2.QtCore import QCoreApplication
QCoreApplication.setLibraryPaths(['C:\\Users\\rogue\\OneDrive\\바탕 화면\\cpt\\python\\test\\venv\\Lib\\site-packages\\PySide2\\plugins'])
import PySide2
import PySide2.QtCore
# print(PySide2.__version__)
# print(PySide2.QtCore.__version__)
from PySide2.QtWidgets import QApplication, QWidget, QLabel
import sys
if __name__ == '__main__':
app = QApplication(sys.argv)
window = QWidget()
window.resize(289, 170)
window.setWindowTitle("First Qt Program")
label = QLabel("Hello World")
label.move(110, 80)
window.show()
app.exec_()
728x90
반응형
'Language > Python' 카테고리의 다른 글
Basic Qt Code (0) | 2022.10.26 |
---|---|
Basic Qt (0) | 2022.10.26 |
To change the Python version & Interpreter for VSCODE (0) | 2022.09.08 |
How to use Numpy (0) | 2022.09.06 |
Basic Python_ Class exam : FourCal_Sourcecode (0) | 2022.08.26 |