aboutsummaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-09-09 11:02:46 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-09-09 11:02:46 +0100
commit14b4fdd958c4df7e2cb72a88c30f6d250ed43a67 (patch)
tree955da130e6f8331a6c6bb83dc806c8fc1a7daa2a /editor
parent159004bc7f70615d7bcc9469b86131fef1dcf147 (diff)
downloadYAGE-14b4fdd958c4df7e2cb72a88c30f6d250ed43a67.tar.gz
YAGE-14b4fdd958c4df7e2cb72a88c30f6d250ed43a67.zip
Adding PyQt
Diffstat (limited to 'editor')
-rw-r--r--editor/tooltip.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/editor/tooltip.py b/editor/tooltip.py
new file mode 100644
index 00000000..57ed7a86
--- /dev/null
+++ b/editor/tooltip.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python3
+
+import sys
+from PyQt5.QtWidgets import QWidget, QPushButton, QApplication
+from PyQt5.QtCore import QCoreApplication
+
+
+class Example(QWidget):
+
+ def __init__(self):
+ super().__init__()
+ self.initUI()
+
+ def initUI(self):
+ qbtn = QPushButton("Quit", self)
+ qbtn.clicked.connect(QCoreApplication.instance().quit)
+ qbtn.resize(qbtn.sizeHint())
+ qbtn.move(50, 50)
+
+ self.setGeometry(300, 300, 250, 150)
+ self.setWindowTitle("Quit Button")
+ self.show()
+
+
+if __name__ == "__main__":
+ app = QApplication(sys.argv)
+ ex = Example()
+ sys.exit(app.exec_())