示例#1
0
 def subscribe(self, state, *args, **kwargs):
     object_storage["widgets"] = Object.to_py(state.widgets)
示例#2
0
文件: app.py 项目: sailfish009/vue.py
 def save_todos(self, new, old):
     ToDoStorage.save(Object.to_py(new))
示例#3
0
 def get_prop(self, item):
     from vue.bridge import Object
     props = Object.to_py(self.store.props(self.widget_id))
     return props.get(item, None)