Skip to content

Instantly share code, notes, and snippets.

@silas
Created July 18, 2018 11:31
Show Gist options
  • Save silas/00e162c4d4e4cfd314ceda5f64be56cc to your computer and use it in GitHub Desktop.
Save silas/00e162c4d4e4cfd314ceda5f64be56cc to your computer and use it in GitHub Desktop.
Qt Python Example
$ 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