[tests/cmus] Add tests for cmus mouse interaction

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-10 08:37:04 +01:00
parent b1ec41f905
commit 38a42e4a77
3 changed files with 38 additions and 3 deletions

View file

@ -39,6 +39,11 @@ class Module(object):
"""Return the widgets to draw for this module"""
return self._widgets
def widget(self, name):
for widget in self._widgets:
if widget.name == name:
return widget
def update(self, widgets):
"""By default, update() is a NOP"""
pass