Home | Trees | Index | Help |
|
---|
Package kiwi :: Package ui :: Module proxy :: Class Proxy |
|
A Proxy is a class that 'attaches' an instance to an interface's widgets, and transparently manipulates that instance's attributes as the user alters the content of the widgets.
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 Summary | |
---|---|
Adds a new widget to the proxy | |
new_model(*args,
**kwargs)
| |
This is a hook that is called whenever the proxy updates the model. | |
Removes a widget from the proxy | |
Updates the model instance of the proxy. | |
Generic frontend function to update the contentss of a widget based on its model attribute name using the internal update functions. | |
Like update but takes a sequence of
attributes |
Property Summary | |
---|---|
model |
Method Details |
---|
add_widget(self, name, widget)Adds a new widget to the proxy
|
proxy_updated(self, widget, attribute, value)This is a hook that is called whenever the proxy updates the model. Implement it in the inherited class to perform actions that should be done each time the user changes something in the interface. This hook by default does nothing.
|
remove_widget(self, name)Removes a widget from the proxy
|
set_model(self, model, relax_type=False)Updates the model instance of the proxy. Allows a proxy interface to change model without the need to destroy and recreate the UI (which would cause flashing, at least)
|
update(self, attribute, value=<class kiwi.ValueUnset at 0x401f3d7c>, block=False)Generic frontend function to update the contentss of a widget based on its model attribute name using the internal update functions.
|
update_many(self, attributes, value=<class kiwi.ValueUnset at 0x401f3d7c>, block=False)Likeupdate but takes a sequence of
attributes
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jan 29 16:46:05 2007 | http://epydoc.sf.net |