高耦合度使用最后一版
This commit is contained in:
119
kv/app.kv
119
kv/app.kv
@ -507,6 +507,7 @@ ScreenManager: # 屏幕管理器,用于管理应用中所有的屏幕及其
|
||||
color: rgba(0, 0, 59, 255)
|
||||
|
||||
MDLabel:
|
||||
id : wifi_status_text
|
||||
text: app.wifi_status_text
|
||||
font_name: "MPoppins"
|
||||
size_hint_x: None
|
||||
@ -1542,8 +1543,7 @@ ScreenManager: # 屏幕管理器,用于管理应用中所有的屏幕及其
|
||||
MDActionBottomAppBarButton:
|
||||
icon: "chart-bell-curve-cumulative"
|
||||
pos_hint:{'center_x':0.85, 'center_y': 0.5}
|
||||
on_press:
|
||||
root.manager.current = 'real_time_curve'
|
||||
on_press: root.manager.current = 'real_time_curve'
|
||||
# app.book_history()
|
||||
|
||||
MDIconButton:
|
||||
@ -1561,7 +1561,7 @@ ScreenManager: # 屏幕管理器,用于管理应用中所有的屏幕及其
|
||||
app.on_press_back_arrow()
|
||||
|
||||
MDLabel:
|
||||
text: "Reading Chronicle"
|
||||
text: "测试历史"
|
||||
font_name: "BPoppins"
|
||||
font_size: "24sp"
|
||||
size_hint_x: None
|
||||
@ -1572,7 +1572,7 @@ ScreenManager: # 屏幕管理器,用于管理应用中所有的屏幕及其
|
||||
|
||||
|
||||
MDLabel:
|
||||
text: "Reflecting on Read and Returned"
|
||||
text: "故障历史"
|
||||
font_name: "MPoppins"
|
||||
font_size: "18sp"
|
||||
size_hint_x: None
|
||||
@ -2419,34 +2419,105 @@ ScreenManager: # 屏幕管理器,用于管理应用中所有的屏幕及其
|
||||
padding: "12dp"
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.9}
|
||||
color: rgba(0, 0, 59, 255)
|
||||
|
||||
MDLabel:
|
||||
id: register_label
|
||||
text: "通信超时"
|
||||
text: "[u]通信超时: [/u]" # 下划线样式提示可点击
|
||||
font_name: "MPoppins"
|
||||
font_size: "18sp"
|
||||
size_hint_x: None
|
||||
width: dp(400)
|
||||
padding: "12dp"
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.85}
|
||||
color: rgba(135, 133, 193, 255)
|
||||
# 添加修改功能的输入和按钮(放在合适位置,如标签下方)
|
||||
BoxLayout:
|
||||
orientation: 'horizontal'
|
||||
size_hint: 1, 0.1
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.75} # 调整位置在标签下方
|
||||
padding: dp(10)
|
||||
spacing: dp(10)
|
||||
|
||||
MDTextField:
|
||||
id: register_input
|
||||
# hint_text: "modify value"
|
||||
input_filter: "int" # 限制整数输入
|
||||
size_hint_x: 0.7
|
||||
|
||||
MDRaisedButton:
|
||||
text: "修改"
|
||||
size_hint_x: 0.3
|
||||
on_press: app.modify_register(register_input.text) # 绑定修改方法
|
||||
color: (135/255, 133/255, 193/255, 1)
|
||||
markup: True # 启用标记以显示下划线
|
||||
on_touch_down:
|
||||
# if self.collide_point(*args[1].pos):
|
||||
app.show_modify_dialog("register_label", " ") # 与if同层级缩进
|
||||
MDLabel:
|
||||
id: register_label
|
||||
text: "[u]通信超时: [/u]" # 下划线样式提示可点击
|
||||
font_name: "MPoppins"
|
||||
font_size: "18sp"
|
||||
size_hint_x: None
|
||||
width: dp(400)
|
||||
padding: "12dp"
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.85}
|
||||
color: (135/255, 133/255, 193/255, 1)
|
||||
markup: True # 启用标记以显示下划线
|
||||
on_touch_down:
|
||||
# if self.collide_point(*args[1].pos):
|
||||
app.show_modify_dialog("register_label", " ") # 与if同层级缩进
|
||||
MDLabel:
|
||||
id: register_label
|
||||
text: "[u]通信超时: [/u]" # 下划线样式提示可点击
|
||||
font_name: "MPoppins"
|
||||
font_size: "18sp"
|
||||
size_hint_x: None
|
||||
width: dp(400)
|
||||
padding: "12dp"
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.85}
|
||||
color: (135/255, 133/255, 193/255, 1)
|
||||
markup: True # 启用标记以显示下划线
|
||||
on_touch_down:
|
||||
# if self.collide_point(*args[1].pos):
|
||||
app.show_modify_dialog("register_label", " ") # 与if同层级缩进
|
||||
MDLabel:
|
||||
id: register_label
|
||||
text: "[u]通信超时: [/u]" # 下划线样式提示可点击
|
||||
font_name: "MPoppins"
|
||||
font_size: "18sp"
|
||||
size_hint_x: None
|
||||
width: dp(400)
|
||||
padding: "12dp"
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.85}
|
||||
color: (135/255, 133/255, 193/255, 1)
|
||||
markup: True # 启用标记以显示下划线
|
||||
on_touch_down:
|
||||
# if self.collide_point(*args[1].pos):
|
||||
app.show_modify_dialog("register_label", " ") # 与if同层级缩进
|
||||
MDLabel:
|
||||
id: register_label
|
||||
text: "[u]通信超时: [/u]" # 下划线样式提示可点击
|
||||
font_name: "MPoppins"
|
||||
font_size: "18sp"
|
||||
size_hint_x: None
|
||||
width: dp(400)
|
||||
padding: "12dp"
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.85}
|
||||
color: (135/255, 133/255, 193/255, 1)
|
||||
markup: True # 启用标记以显示下划线
|
||||
on_touch_down:
|
||||
# if self.collide_point(*args[1].pos):
|
||||
app.show_modify_dialog("register_label", " ") # 与if同层级缩进
|
||||
MDLabel:
|
||||
id: register_label
|
||||
text: "[u]通信超时: [/u]" # 下划线样式提示可点击
|
||||
font_name: "MPoppins"
|
||||
font_size: "18sp"
|
||||
size_hint_x: None
|
||||
width: dp(400)
|
||||
padding: "12dp"
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.85}
|
||||
color: (135/255, 133/255, 193/255, 1)
|
||||
markup: True # 启用标记以显示下划线
|
||||
on_touch_down:
|
||||
# if self.collide_point(*args[1].pos):
|
||||
app.show_modify_dialog("register_label", " ") # 与if同层级缩进
|
||||
MDLabel:
|
||||
id: register_label
|
||||
text: "[u]通信超时: [/u]" # 下划线样式提示可点击
|
||||
font_name: "MPoppins"
|
||||
font_size: "18sp"
|
||||
size_hint_x: None
|
||||
width: dp(400)
|
||||
padding: "12dp"
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.85}
|
||||
color: (135/255, 133/255, 193/255, 1)
|
||||
markup: True # 启用标记以显示下划线
|
||||
on_touch_down:
|
||||
# if self.collide_point(*args[1].pos):
|
||||
app.show_modify_dialog("register_label", " ") # 与if同层级缩进
|
||||
# CurveWidget:
|
||||
# size_hint_y: None
|
||||
# height: dp(300)
|
||||
|
||||
Reference in New Issue
Block a user