获取脚本配置参数(等待用户提交控件数据) Get script configuration parameters (wait for the user to submit control data) return: 用户提交的控件数据 return: control data submitted by the user.
(self)
| 137 | return "true" in self.SendData("createWebView", _id, url, coordinate[0], coordinate[1], controlsize[0], controlsize[1]) |
| 138 | |
| 139 | def get_script_params(self) -> dict: |
| 140 | """ |
| 141 | 获取脚本配置参数(等待用户提交控件数据) |
| 142 | Get script configuration parameters (wait for the user to submit control data) |
| 143 | |
| 144 | return: 用户提交的控件数据 |
| 145 | return: control data submitted by the user. |
| 146 | """ |
| 147 | response = self.SendData("getScriptParam") |
| 148 | if response == "null": |
| 149 | return None |
| 150 | try: |
| 151 | params = json.loads(response) |
| 152 | except Exception as e: |
| 153 | return {} |
| 154 | return params |
| 155 | |
| 156 | def clear_script_widget(self) -> bool: |
| 157 | """ |