Python PyQt5.QtWidgets.QDial() Examples

The following are 1 code examples for showing how to use PyQt5.QtWidgets.QDial(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.

You may check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module PyQt5.QtWidgets , or try the search function .

Example 1
Project: dayworkspace   Author: copie   File: tp.py    License: GNU Lesser General Public License v3.0 4 votes vote down vote up
def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(1053, 761)
        self.label = QtWidgets.QLabel(Form)
        self.label.setGeometry(QtCore.QRect(240, 20, 551, 171))
        self.label.setObjectName("label")
        self.dial = QtWidgets.QDial(Form)
        self.dial.setGeometry(QtCore.QRect(670, 310, 131, 81))
        self.dial.setObjectName("dial")
        self.layoutWidget = QtWidgets.QWidget(Form)
        self.layoutWidget.setGeometry(QtCore.QRect(240, 230, 194, 230))
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_2 = QtWidgets.QLabel(self.layoutWidget)
        self.label_2.setObjectName("label_2")
        self.verticalLayout.addWidget(self.label_2)
        self.label_3 = QtWidgets.QLabel(self.layoutWidget)
        self.label_3.setObjectName("label_3")
        self.verticalLayout.addWidget(self.label_3)
        self.label_4 = QtWidgets.QLabel(self.layoutWidget)
        self.label_4.setObjectName("label_4")
        self.verticalLayout.addWidget(self.label_4)
        self.layoutWidget1 = QtWidgets.QWidget(Form)
        self.layoutWidget1.setGeometry(QtCore.QRect(470, 230, 191, 231))
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.ledT = QtWidgets.QLCDNumber(self.layoutWidget1)
        self.ledT.setObjectName("ledT")
        self.verticalLayout_2.addWidget(self.ledT)
        self.ledE = QtWidgets.QLCDNumber(self.layoutWidget1)
        self.ledE.setObjectName("ledE")
        self.verticalLayout_2.addWidget(self.ledE)
        self.ledH = QtWidgets.QLCDNumber(self.layoutWidget1)
        self.ledH.setObjectName("ledH")
        self.verticalLayout_2.addWidget(self.ledH)

        self.retranslateUi(Form)
        self.dial.valueChanged['int'].connect(self.ledE.display)
        QtCore.QMetaObject.connectSlotsByName(Form)