edifice.Component.set_state

Component.set_state(**kwargs)[source]

Set state and render changes.

The keywords are the names of the state attributes of the class, e.g. for the state self.mystate, you call set_state with set_state(mystate=2). At the end of this call, all changes will be rendered. All changes are guaranteed to appear atomically: upon exception, no changes to state will occur.