更新运行条件

This commit is contained in:
星外之神 2022-05-03 10:32:48 +08:00
parent 16b78f4c42
commit 0a5ce37a73
2 changed files with 2 additions and 2 deletions

View File

@ -36,6 +36,7 @@ python main.py
### 使用Windows可执行文件
在本仓库的`Release`页面中下载`pypvz.exe`文件,双击运行即可
- 仅支持64位操作系统
## 方法

View File

@ -16,7 +16,7 @@ class Menu(tool.State):
self.setupOption()
def setupBackground(self):
frame_rect = [80, 0, 800, 600]
frame_rect = (80, 0, 800, 600)
# 1、形参中加单星号即f(*x)则表示x为元组所有对x的操作都应将x视为元组类型进行。
# 2、双星号同上区别是x视为字典。
# 3、在变量前加单星号表示将元组列表、集合拆分为单个元素。
@ -113,7 +113,6 @@ class Menu(tool.State):
# 点击到按钮修改转态的done属性
def checkExitClick(self, mouse_pos):
x, y = mouse_pos
# 这里检查范围应当拟合花瓶下部整个区域
if self.inAreaExit(x, y):
self.done = True
self.next = c.EXIT