MCPcopy Create free account
hub / github.com/a943512/PyAibote / create_check_box

Method create_check_box

PyAibote/AndroidBotModel/Control.py:51–72  ·  view source on GitHub ↗

创建复选框控件 Create a check box control _id: 控件ID,不可与其他控件重复 text: 控件文本 coordinate: x,y坐标 默认 (400,500) width: 控件宽度,默认 400 height: 控件高度,默认 60 is_select: 是否勾选,默认 False return: True或者False

(self, _id: int, text: str, coordinate: tuple = (400,500), width: int = 400, height: int = 60,is_select: bool = False)

Source from the content-addressed store, hash-verified

49 return "true" in self.SendData("createEditText", _id, text, coordinate[0], coordinate[1], width, height)
50
51 def create_check_box(self, _id: int, text: str, coordinate: tuple = (400,500), width: int = 400, height: int = 60,is_select: bool = False) -> bool:
52 """
53 创建复选框控件
54 Create a check box control
55
56 _id: 控件ID,不可与其他控件重复
57 text: 控件文本
58 coordinate: x,y坐标 默认 (400,500)
59 width: 控件宽度,默认 400
60 height: 控件高度,默认 60
61 is_select: 是否勾选,默认 False
62 return: True或者False
63
64 _id: control id, which cannot be duplicated with other controls
65 text: control text
66 coordinate: x,y coordinates default (400,500)
67 width: the width of the control, which is 400 by default
68 height: control height, default is 60
69 is_select: whether it is checked or not; the default value is False
70 return: True or False
71 """
72 return "true" in self.SendData("createCheckBox", _id, text, coordinate[0], coordinate[1], width, height, is_select)
73
74 def create_switch_button(self, _id: int, text: str, coordinate: tuple = (400,500), width: int = 400, height: int = 60,is_select: bool = False) -> bool:
75 """

Callers

nothing calls this directly

Calls 1

SendDataMethod · 0.80

Tested by

no test coverage detected