Module lousy.widget.common
Common functions for implementing widgets
Functions
lousy.widget.common.add_widget (widgets, widget)
Add widget
to widgets
, and automatically remove it when widget
is
destroyed.
Parameters
-
widgetsType: tableA table of widgets
-
widgetType: widgetA newly-created widget
Return Values
-
any typeReturns
widget
, to allow easy chaining.
lousy.widget.common.update_widgets_on_w (widgets, w)
Update all widgets in widgets
on the given window.
Parameters
-
widgetsType: tableA table of widgets
-
wType: tableA window table
Attribution
Copyright
- 2017 Aidan Holm