[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:
Tobi-wan Kenobi 2016-12-11 12:23:33 +01:00
parent 17ee621a5a
commit 1d6ca352b9
2 changed files with 78 additions and 0 deletions

View file

@ -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