[modules/cmus] Make text description scrollable
Since the description of a song can get pretty lengthy, make it scrollable. fixes #27
This commit is contained in:
parent
928940d848
commit
1670890491
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,8 @@ import bumblebee.input
|
||||||
import bumblebee.output
|
import bumblebee.output
|
||||||
import bumblebee.engine
|
import bumblebee.engine
|
||||||
|
|
||||||
|
from bumblebee.output import scrollable
|
||||||
|
|
||||||
class Module(bumblebee.engine.Module):
|
class Module(bumblebee.engine.Module):
|
||||||
def __init__(self, engine, config):
|
def __init__(self, engine, config):
|
||||||
widgets = [
|
widgets = [
|
||||||
|
@ -47,6 +49,7 @@ class Module(bumblebee.engine.Module):
|
||||||
self._repeat = False
|
self._repeat = False
|
||||||
self._tags = defaultdict(lambda: '')
|
self._tags = defaultdict(lambda: '')
|
||||||
|
|
||||||
|
@scrollable
|
||||||
def description(self, widget):
|
def description(self, widget):
|
||||||
return string.Formatter().vformat(self._fmt, (), self._tags)
|
return string.Formatter().vformat(self._fmt, (), self._tags)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue