-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.py
54 lines (48 loc) · 2.57 KB
/
MainWindow.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.7.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.speedTitle = QtWidgets.QLabel(self.centralwidget)
self.speedTitle.setObjectName("speedTitle")
self.gridLayout.addWidget(self.speedTitle, 0, 0, 1, 1)
self.speed = QtWidgets.QLCDNumber(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.speed.sizePolicy().hasHeightForWidth())
self.speed.setSizePolicy(sizePolicy)
self.speed.setFrameShadow(QtWidgets.QFrame.Raised)
self.speed.setDigitCount(5)
self.speed.setProperty("value", 0.0)
self.speed.setObjectName("speed")
self.gridLayout.addWidget(self.speed, 0, 1, 1, 1)
self.cadenceTitle = QtWidgets.QLabel(self.centralwidget)
self.cadenceTitle.setObjectName("cadenceTitle")
self.gridLayout.addWidget(self.cadenceTitle, 1, 0, 1, 1)
self.cadence = QtWidgets.QLCDNumber(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cadence.sizePolicy().hasHeightForWidth())
self.cadence.setSizePolicy(sizePolicy)
self.cadence.setObjectName("cadence")
self.gridLayout.addWidget(self.cadence, 1, 1, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Bike Sensors"))
self.speedTitle.setText(_translate("MainWindow", "<h1>Speed (km/h)</h1>"))
self.cadenceTitle.setText(_translate("MainWindow", "<h1>Cadence (rpm)</h1>"))