Python
[PyQt] Make a window with "Hello World"
jackyjung
2017. 2. 2. 05:51
[PyQt] Make a window with "Hello World"
Target
1. Create a window
2. print "Hello World" on the window
Source code
import sys from PyQt5.QtWidgets import * app = QApplication(sys.argv) label = QLabel("Hello World") label.show() app.exec_() |
Result
QT library is located in C:\Users\JC\Anaconda3\Lib\site-packages\PyQt5 in my windows machine