fix:修复一些BUG
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user