创建ListText控件 Create ListText control _id: 控件ID,不可与其他控件重复 hint_text: 提示文本 list_text: 下拉列表中的文本以逗号分割 coordinate: x,y坐标 默认 (400,500) width: 控件宽度 height: 控件高度 return: True或者False
(self, _id: int, hint_text: str, list_text: str, coordinate: tuple = (400,500), width: int = 400, height: int = 400)
| 95 | return "true" in self.SendData("createSwitchButton", _id, text, coordinate[0], coordinate[1], width, height, is_select) |
| 96 | |
| 97 | def create_list_text(self, _id: int, hint_text: str, list_text: str, coordinate: tuple = (400,500), width: int = 400, height: int = 400) -> bool: |
| 98 | """ |
| 99 | 创建ListText控件 |
| 100 | Create ListText control |
| 101 | |
| 102 | _id: 控件ID,不可与其他控件重复 |
| 103 | hint_text: 提示文本 |
| 104 | list_text: 下拉列表中的文本以逗号分割 |
| 105 | coordinate: x,y坐标 默认 (400,500) |
| 106 | width: 控件宽度 |
| 107 | height: 控件高度 |
| 108 | return: True或者False |
| 109 | |
| 110 | _ID: control id, which cannot be duplicated with other controls |
| 111 | Hint_text: prompt text |
| 112 | List_text: list text |
| 113 | Coordinate: x,y coordinates default (400,500) |
| 114 | Width: control width |
| 115 | Height: control height |
| 116 | Return: True or False |
| 117 | """ |
| 118 | return "true" in self.SendData("createListText", _id, hint_text, coordinate[0], coordinate[1], width, height, list_text) |
| 119 | |
| 120 | def create_web_view(self, _id: int, url: str, coordinate: tuple = (-1,-1), controlsize: tuple = (-1,-1)) -> bool: |
| 121 | """ |