[core/module] Add config to module
Add access for all modules to the commandline parameters (called "config" in bumblebee-status)
This commit is contained in:
parent
74e74bb78b
commit
3a531c359f
6 changed files with 22 additions and 11 deletions
|
@ -8,7 +8,7 @@ import core.module
|
|||
import core.widget
|
||||
|
||||
class Module(core.module.Module):
|
||||
def __init__(self):
|
||||
super().__init__(core.widget.Widget(platform.release()))
|
||||
def __init__(self, config=None):
|
||||
super().__init__(config, core.widget.Widget(platform.release()))
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||
|
|
|
@ -7,7 +7,7 @@ import core.widget
|
|||
import core.module
|
||||
|
||||
class Module(core.module.Module):
|
||||
def __init__(self):
|
||||
super().__init__(core.widget.Widget('test'))
|
||||
def __init__(self, config=None):
|
||||
super().__init__(config, core.widget.Widget('test'))
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue