本文整理汇总了Python中PyQt5.QtWidgets.QDial.setProperty方法的典型用法代码示例。如果您正苦于以下问题:Python QDial.setProperty方法的具体用法?Python QDial.setProperty怎么用?Python QDial.setProperty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt5.QtWidgets.QDial
的用法示例。
在下文中一共展示了QDial.setProperty方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Setting_Ui
# 需要导入模块: from PyQt5.QtWidgets import QDial [as 别名]
# 或者: from PyQt5.QtWidgets.QDial import setProperty [as 别名]
#.........这里部分代码省略.........
self.temp_horizontalLayout.addWidget(self.temp_download_lineEdit)
self.temp_download_pushButton = QPushButton(self.save_as_tab)
self.temp_horizontalLayout.addWidget(self.temp_download_pushButton)
save_as_tab_verticalLayout.addLayout(self.temp_horizontalLayout)
# create subfolder
self.subfolder_checkBox = QCheckBox(self.save_as_tab)
save_as_tab_verticalLayout.addWidget(self.subfolder_checkBox)
save_as_tab_verticalLayout.addStretch(1)
self.setting_tabWidget.addTab(self.save_as_tab, "")
# notifications_tab
self.notifications_tab = QWidget()
notification_tab_verticalLayout = QVBoxLayout(self.notifications_tab)
notification_tab_verticalLayout.setContentsMargins(21, 21, 0, 0)
self.enable_notifications_checkBox = QCheckBox(self.notifications_tab)
notification_tab_verticalLayout.addWidget(self.enable_notifications_checkBox)
self.sound_frame = QFrame(self.notifications_tab)
self.sound_frame.setFrameShape(QFrame.StyledPanel)
self.sound_frame.setFrameShadow(QFrame.Raised)
verticalLayout = QVBoxLayout(self.sound_frame)
self.volume_label = QLabel(self.sound_frame)
verticalLayout.addWidget(self.volume_label)
self.volume_dial = QDial(self.sound_frame)
self.volume_dial.setProperty("value", 100)
verticalLayout.addWidget(self.volume_dial)
notification_tab_verticalLayout.addWidget(self.sound_frame)
# message_notification
message_notification_horizontalLayout = QHBoxLayout()
self.notification_label = QLabel(self.notifications_tab)
message_notification_horizontalLayout.addWidget(self.notification_label)
self.notification_comboBox = QComboBox(self.notifications_tab)
message_notification_horizontalLayout.addWidget(self.notification_comboBox)
notification_tab_verticalLayout.addLayout(message_notification_horizontalLayout)
notification_tab_verticalLayout.addStretch(1)
self.setting_tabWidget.addTab(self.notifications_tab, "")
# style_tab
self.style_tab = QWidget()
style_tab_verticalLayout = QVBoxLayout(self.style_tab)
style_tab_verticalLayout.setContentsMargins(21, 21, 0, 0)
# style
style_horizontalLayout = QHBoxLayout()
self.style_label = QLabel(self.style_tab)
style_horizontalLayout.addWidget(self.style_label)
self.style_comboBox = QComboBox(self.style_tab)
style_horizontalLayout.addWidget(self.style_comboBox)
style_tab_verticalLayout.addLayout(style_horizontalLayout)