[core/widget] Make module an attribute
Instead of having an artifical getter/setter method, just make module a plain attribute.
This commit is contained in:
parent
9cd9ff626d
commit
b27956071f
8 changed files with 12 additions and 19 deletions
|
@ -33,7 +33,7 @@ class Module(core.input.Object):
|
|||
self.__config = config
|
||||
self.__widgets = widgets if isinstance(widgets, list) else [ widgets ]
|
||||
for widget in self.__widgets:
|
||||
widget.module(self)
|
||||
widget.module = self
|
||||
self.__name = None
|
||||
self.alias = self.__config.get('__alias__', None)
|
||||
self.next_update = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue