fix:修复一些BUG

This commit is contained in:
2025-12-19 21:37:44 +08:00
parent 14b8c19dfe
commit 842a7cce64
13 changed files with 88 additions and 203 deletions

View File

@@ -48,10 +48,10 @@ def calculate_window_size():
screen_width = m.width
screen_height = m.height
# 设置窗口宽度为屏幕宽度的 70%
target_width = int(screen_width * 0.70)
# 设置窗口高度为屏幕高度的 80%
target_height = int(screen_height * 0.80)
# 设置窗口宽度为屏幕宽度的 30%
target_width = int(screen_width * 0.30)
# 设置窗口高度为屏幕高度的 60%
target_height = int(screen_height * 0.60)
# 确保窗口有一个合理的最小值 (例如 800x600)
min_width = 800