Created
July 18, 2018 11:31
-
-
Save silas/00e162c4d4e4cfd314ceda5f64be56cc to your computer and use it in GitHub Desktop.
Qt Python Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir test | |
$ python3 -m venv venv | |
$ source venv/bin/activate | |
$ pip install PySide2 | |
$ cat << EOF > main.py | |
import sys | |
from PySide2.QtWidgets import QApplication, QLabel | |
if __name__ == '__main__': | |
app = QApplication([]) | |
label = QLabel("Hello World") | |
label.show() | |
sys.exit(app.exec_()) | |
EOF | |
$ python main.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment