main_controller: add 重量读取线程
This commit is contained in:
@ -6,6 +6,7 @@ from view.widgets.switch_button import SwitchButton
|
||||
import resources.resources_rc
|
||||
from utils.image_paths import ImagePaths
|
||||
|
||||
# 底部的控制控件,包括 系统诊断、系统中心等按钮
|
||||
class BottomControlWidget(QWidget):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
@ -262,8 +263,9 @@ class BottomControlWidget(QWidget):
|
||||
text_label.setStyleSheet("color: #3bfff8; font-size: 20px;")
|
||||
layout.addWidget(text_label, alignment=Qt.AlignVCenter)
|
||||
|
||||
# 开关
|
||||
# 开关(初始的时候,自动模式是打开的)
|
||||
self.auto_switch = SwitchButton()
|
||||
self.auto_switch.setChecked(True) # 设置自动模式初始状态
|
||||
layout.addWidget(self.auto_switch, alignment=Qt.AlignVCenter | Qt.AlignRight)
|
||||
|
||||
return widget
|
||||
|
||||
@ -5,6 +5,8 @@ from PySide6.QtCore import Qt, QTimer, QDateTime
|
||||
import resources.resources_rc
|
||||
from utils.image_paths import ImagePaths
|
||||
|
||||
"""主界面最上方的导航栏"""
|
||||
|
||||
# 自定义消息容器, 显示系统消息
|
||||
class MsgContainer(QWidget):
|
||||
def __init__(self, parent=None):
|
||||
|
||||
Reference in New Issue
Block a user