@@ -60,7 +60,8 @@ def mount_speed_section():
60
60
master = speed_frame ,
61
61
font = smaller_font ,
62
62
anchor = "w" ,
63
- text = i18n (["Mouse movement speed in your Android device." , "鼠标在你的安卓设备上的移动速度。" ]))
63
+ text = i18n (["Mouse movement speed in your Android device." ,
64
+ "鼠标在你的安卓设备上的移动速度。" ]))
64
65
speed_slider_frame = ctk .CTkFrame (master = speed_frame )
65
66
low_label = ctk .CTkLabel (
66
67
master = speed_slider_frame ,
@@ -98,7 +99,8 @@ def edge_toggling_section():
98
99
edge_toggling_info_label = ctk .CTkLabel (
99
100
master = edge_toggling_frame ,
100
101
font = smaller_font ,
101
- text = i18n (["When enabled, the control will be toggled when the mouse reaches the screen edge." , "启用后,当鼠标移至屏幕边缘时会自动切换控制。" ]))
102
+ text = i18n (["When enabled, the control will be toggled when the mouse reaches the screen edge." ,
103
+ "启用后,当鼠标移至屏幕边缘时会自动切换控制。" ]))
102
104
103
105
device_position_label = ctk .CTkLabel (
104
106
master = edge_toggling_frame ,
@@ -130,7 +132,8 @@ def edge_toggling_section():
130
132
trigger_margin_info_label = ctk .CTkLabel (
131
133
master = edge_toggling_frame ,
132
134
font = smaller_font ,
133
- text = i18n (["Prevents triggers when the mouse reaches the corners. Larger values reduce accidents." , "避免鼠标触及屏幕角落时触发操作。更大的值可以避免误操作。" ]))
135
+ text = i18n (["Prevents triggers when the mouse reaches the corners. Larger values reduce accidents." ,
136
+ "避免鼠标触及屏幕角落时触发切换。更大的值可以避免误操作。" ]))
134
137
135
138
edge_toggling_frame .pack (fill = "x" , pady = (20 , 0 ))
136
139
edge_toggling_label .grid (row = 0 , column = 0 , padx = (20 , 0 ), sticky = "w" )
@@ -145,7 +148,7 @@ def edge_toggling_section():
145
148
trigger_margin_entry .grid (row = 5 , column = 1 , pady = (6 , 0 ), sticky = "w" )
146
149
trigger_margin_info_label .grid (row = 6 , column = 0 , columnspan = 2 , padx = 20 , sticky = "w" )
147
150
148
- def mouse_keep_wakeup_section ():
151
+ def keep_wakeup_section ():
149
152
nonlocal settings_scroll_frame , smaller_font , normal_font , larger_font , keep_wakeup_var
150
153
keep_wakeup_frame = ctk .CTkFrame (master = settings_scroll_frame )
151
154
keep_wakeup_label = ctk .CTkLabel (
@@ -159,7 +162,8 @@ def mouse_keep_wakeup_section():
159
162
info_label = ctk .CTkLabel (
160
163
master = keep_wakeup_frame ,
161
164
font = smaller_font ,
162
- text = i18n (["When enabled, the device screen will stay on and prevent auto-sleep." , "启用后,设备屏幕将持续亮屏,防止自动休眠。" ]))
165
+ text = i18n (["When enabled, the device screen will stay on and prevent auto-sleep." ,
166
+ "启用后,设备屏幕将持续亮屏,防止自动休眠。" ]))
163
167
keep_wakeup_frame .pack (fill = "x" , pady = (20 , 0 ))
164
168
keep_wakeup_label .grid (row = 0 , column = 0 , padx = (20 , 0 ), sticky = "w" )
165
169
check_box .grid (row = 0 , column = 1 )
@@ -221,14 +225,15 @@ def confirm():
221
225
mouse_theme_section ()
222
226
mount_speed_section ()
223
227
edge_toggling_section ()
224
- mouse_keep_wakeup_section ()
228
+ keep_wakeup_section ()
225
229
mount_language_section ()
226
230
227
231
# action buttons section
228
232
button_frame = ctk .CTkFrame (master = root )
229
233
tips_label = ctk .CTkLabel (
230
234
master = button_frame ,
231
- text = i18n (["Some settings require a restart to take effect." , "部分设置需要重启应用后生效。" ]),
235
+ text = i18n (["Some settings require a restart to take effect." ,
236
+ "部分设置需要重启应用后生效。" ]),
232
237
anchor = "e" ,
233
238
font = smaller_font )
234
239
cancel_button = ctk .CTkButton (
0 commit comments