[modules/xrandr] Re-enable xrandr module
Displays the connected screens and allows the user to enable/disable them. see #23
This commit is contained in:
parent
17ee621a5a
commit
1d6ca352b9
2 changed files with 78 additions and 0 deletions
|
@ -42,6 +42,12 @@ class Module(object):
|
|||
if widget.name == name:
|
||||
return widget
|
||||
|
||||
def widget_by_id(self, uid):
|
||||
for widget in self._widgets:
|
||||
if widget.id == uid:
|
||||
return widget
|
||||
return None
|
||||
|
||||
def update(self, widgets):
|
||||
"""By default, update() is a NOP"""
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue