-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhint.py
33 lines (23 loc) · 770 Bytes
/
hint.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# qt.io
# https://build-system.fman.io/qt-designer-download
# https://www.riverbankcomputing.com/software/pyqt/download5
# pip install PyQt5
# pyuic5 messenger.ui -o clientui.py
from PyQt5 import QtWidgets
import clientui
class ExampleApp(QtWidgets.QMainWindow, clientui.Ui_MainWindow):
def __init__(self):
super().__init__()
self.setupUi(self)
# to run on button click:
# self.some_button.pressed.connect(self.some_method)
# to run by timer:
# self.timer = QtCore.QTimer()
# self.timer.timeout.connect(self.some_method)
# self.timer.start(1000)
# to fix painting:
# self.some_element.repaint()
app = QtWidgets.QApplication([])
window = ExampleApp()
window.show()
app.exec_()