diff --git a/README.md b/README.md index c9b13d8..5a8d832 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ python main.py ### 使用Windows可执行文件 在本仓库的`Release`页面中下载`pypvz.exe`文件,双击运行即可 +- 仅支持64位操作系统 ## 方法 diff --git a/source/state/mainmenu.py b/source/state/mainmenu.py index b9b80bf..90e8586 100644 --- a/source/state/mainmenu.py +++ b/source/state/mainmenu.py @@ -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