From eb88f55cef96cd0c78ba9020a2e00e8382241e1b Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 14 Jun 2020 09:40:33 +1000 Subject: [PATCH] Add initial Qt stub --- requirements.txt | 3 +++ src/edible_elephant/qt.py | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 src/edible_elephant/qt.py diff --git a/requirements.txt b/requirements.txt index 81d3580..1bf84d8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,3 +5,6 @@ dateparser TurboGears2 kajiki webhelpers2 + +PyQt5 +PyQt5-stubs diff --git a/src/edible_elephant/qt.py b/src/edible_elephant/qt.py new file mode 100755 index 0000000..7912eaa --- /dev/null +++ b/src/edible_elephant/qt.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 + +if __name__ == '__main__': + def main(): + from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout + + app = QApplication([]) + + window = QWidget() + layout = QVBoxLayout() + layout.addWidget(QPushButton('Top')) + layout.addWidget(QPushButton('Bottom')) + window.setLayout(layout) + window.show() + + app.exec_() + + main()