2.6
This commit is contained in:
@@ -116,8 +116,10 @@ CustomUIScreenProxy是原生界面的代理类,可通过extraClientApi.GetUISc
|
||||
- 示例
|
||||
|
||||
```python
|
||||
# coding=utf-8
|
||||
import client.extraClientApi as clientApi
|
||||
CustomUIScreenProxy = clientApi.GetUIScreenProxyCls()
|
||||
ViewBinder = clientApi.GetViewBinderCls()
|
||||
|
||||
|
||||
class PauseScreenProxy(CustomUIScreenProxy):
|
||||
@@ -135,10 +137,10 @@ class PauseScreenProxy(CustomUIScreenProxy):
|
||||
|
||||
@ViewBinder.binding(ViewBinder.BF_ToggleChanged, "#myMod.myToggle")
|
||||
def onToggleChanged(self, args):
|
||||
"""
|
||||
proxy也支持binding,这里展示的是绑定一类toggle(这类toggle甚至可以不存在),这类toggle满足"toggle_name"属性是"#myMod.myToggle"这一要求,当他们发生状态改变的时候就会调用该函数。
|
||||
"""
|
||||
print("myToggle onToggleChanged: {}".format(args))
|
||||
"""
|
||||
proxy也支持binding,这里展示的是绑定一类toggle(这类toggle甚至可以不存在),这类toggle满足"toggle_name"属性是"#myMod.myToggle"这一要求,当他们发生状态改变的时候就会调用该函数。
|
||||
"""
|
||||
print("myToggle onToggleChanged: {}".format(args))
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user