Component

Provides an abstract base class for an interface element to allow for the easy construction of interesting interfaces

 

__init__(self, dynamic=True, debug_pane=None, **attrs): 

 

@property
attrs(self): 

 

get_attr(self, key): 

 

get_child(self, key): 

 

__getitem__(self, item): 

 

set_attr(self, key, value): 

 

update_widget_attr(self, key, value): 

 

set_child(self, which, new): 

 

update_widget_child(self, key, value): 

 

__setitem__(self, key, value): 

 

del_attr(self, key): 

 

del_widget_attr(self, key): 

 

del_child(self, which): 

 

del_widget_child(self, key): 

 

__delitem__(self, key): 

 

insert(self, where, new): 

 

append(self, child): 

 

insert_child(self, where, child): 

 

insert_widget_child(self, where, child): 

 

add_class(self, *cls): 

 

add_component_class(self, *cls): 

 

add_widget_class(self, *cls): 

 

remove_class(self, *cls): 

 

remove_component_class(self, *cls): 

 

remove_widget_class(self, *cls): 

 

to_jhtml(self, parent=None): 

 

to_widget(self, parent=None): 

 

mutate(self, fn): 

 

invalidate_cache(self): 

Feedback

Examples

Templates

Documentation