[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
|
@ -46,7 +46,7 @@ def get_dnf_info(widget):
|
|||
widget.set('enhancements', enhancements)
|
||||
widget.set('other', other)
|
||||
|
||||
core.event.trigger('update', [ widget.module().id ], redraw_only=True)
|
||||
core.event.trigger('update', [ widget.module.id ], redraw_only=True)
|
||||
|
||||
class Module(core.module.Module):
|
||||
@core.decorators.every(minutes=30)
|
||||
|
|
|
@ -43,7 +43,7 @@ def get_pacman_info(widget, path):
|
|||
|
||||
for i in range(len(repos)):
|
||||
widget.set(repos[i], count[i])
|
||||
core.event.trigger('update', [ widget.module().id ], redraw_only=True)
|
||||
core.event.trigger('update', [ widget.module.id ], redraw_only=True)
|
||||
|
||||
class Module(core.module.Module):
|
||||
@core.decorators.every(minutes=30)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue