Part of kiwi.ui.proxy View In Hierarchy
The Proxy takes the widget list and detects what widgets are to be attached to the model by looking if it is a KiwiWidget and if it has the model-attribute set.
Method | __init__ | Create a new Proxy object. |
Method | proxy_updated | This is a hook that is called whenever the proxy updates the |
Method | update_many | Like update
but takes a sequence of attributes |
Method | update | Generic frontend function to update the contentss of a widget based |
Method | set_model | Updates the model instance of the proxy. |
Method | add_widget | Adds a new widget to the proxy |
Method | remove_widget | Removes a widget from the proxy |
Method | new_model | Undocumented |
Method | _reset_widget | Undocumented |
Method | _setup_widget | Undocumented |
Method | _register_proxy_in_model | Undocumented |
Method | _unregister_proxy_in_model | Undocumented |
Method | _on_widget__content_changed | This is called as soon as the content of one of the widget |
Method | _on_widget__notify | Undocumented |
Method | _get_model | Undocumented |
Parameters | view | view attched to the slave
(type: a kiwi.ui.views.BaseView
subclass
) |
model | model attached to proxy | |
widgets | the widget names (type: list of strings ) |
Parameters | widget | |
attribute | ||
value |
Parameters | attribute | the name of the attribute whose widget we wish to updated. If accessing a radiobutton, specify its group name. |
value | specifies the value to set in the widget. If unspecified, it defaults to the current model's value (through an accessor, if it exists, or getattr). | |
block | defines if we are to block cascading proxy updates triggered by this update. You should use block if you are calling update on *the same attribute that is currently being updated*. This means if you have hooked to a signal of the widget associated to that attribute, and you call update() for the *same attribute*, use block=True. And pray. 8). If block is set to False, the normal update mechanism will occur (the model being updated in the end, hopefully). |
Parameters | model | |
relax_type |
Parameters | name | name of the widget |
widget | widget, must be a gtk.Widget subclass |