更新运行条件
This commit is contained in:
parent
16b78f4c42
commit
0a5ce37a73
@ -36,6 +36,7 @@ python main.py
|
|||||||
### 使用Windows可执行文件
|
### 使用Windows可执行文件
|
||||||
|
|
||||||
在本仓库的`Release`页面中下载`pypvz.exe`文件,双击运行即可
|
在本仓库的`Release`页面中下载`pypvz.exe`文件,双击运行即可
|
||||||
|
- 仅支持64位操作系统
|
||||||
|
|
||||||
## 方法
|
## 方法
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ class Menu(tool.State):
|
|||||||
self.setupOption()
|
self.setupOption()
|
||||||
|
|
||||||
def setupBackground(self):
|
def setupBackground(self):
|
||||||
frame_rect = [80, 0, 800, 600]
|
frame_rect = (80, 0, 800, 600)
|
||||||
# 1、形参中加单星号,即f(*x)则表示x为元组,所有对x的操作都应将x视为元组类型进行。
|
# 1、形参中加单星号,即f(*x)则表示x为元组,所有对x的操作都应将x视为元组类型进行。
|
||||||
# 2、双星号同上,区别是x视为字典。
|
# 2、双星号同上,区别是x视为字典。
|
||||||
# 3、在变量前加单星号表示将元组(列表、集合)拆分为单个元素。
|
# 3、在变量前加单星号表示将元组(列表、集合)拆分为单个元素。
|
||||||
@ -113,7 +113,6 @@ class Menu(tool.State):
|
|||||||
# 点击到按钮,修改转态的done属性
|
# 点击到按钮,修改转态的done属性
|
||||||
def checkExitClick(self, mouse_pos):
|
def checkExitClick(self, mouse_pos):
|
||||||
x, y = mouse_pos
|
x, y = mouse_pos
|
||||||
# 这里检查范围应当拟合花瓶下部整个区域
|
|
||||||
if self.inAreaExit(x, y):
|
if self.inAreaExit(x, y):
|
||||||
self.done = True
|
self.done = True
|
||||||
self.next = c.EXIT
|
self.next = c.EXIT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user