parent
b1ec41f905
commit
38a42e4a77
3 changed files with 38 additions and 3 deletions
|
@ -39,6 +39,11 @@ class Module(object):
|
|||
"""Return the widgets to draw for this module"""
|
||||
return self._widgets
|
||||
|
||||
def widget(self, name):
|
||||
for widget in self._widgets:
|
||||
if widget.name == name:
|
||||
return widget
|
||||
|
||||
def update(self, widgets):
|
||||
"""By default, update() is a NOP"""
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue