-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallocation.py
28 lines (24 loc) · 1.04 KB
/
allocation.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
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow_4(object):
def setupUi_4(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1920, 1080)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.home = QtWidgets.QPushButton(self.centralwidget)
self.home.setStyleSheet("background-color: rgb(255, 191, 0);")
self.home.setText("Home")
self.home.setGeometry(QtCore.QRect(0, 0, 100, 40))
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setText("Work in progress")
self.label.setGeometry(QtCore.QRect(400, 400, 400, 40))
MainWindow.setCentralWidget(self.centralwidget)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow_4()
ui.setupUi_4(MainWindow)
MainWindow.show()
sys.exit(app.exec_())