From 6a8d8302818a716597e7e8d36f943e9912fae6f7 Mon Sep 17 00:00:00 2001 From: LtPeriwinkle Date: Thu, 25 Jun 2020 10:20:02 -0700 Subject: [PATCH] util.format.aslist() for layout --- bumblebee_status/modules/contrib/spotify-buttons.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bumblebee_status/modules/contrib/spotify-buttons.py b/bumblebee_status/modules/contrib/spotify-buttons.py index 8adb6d2..be198b8 100644 --- a/bumblebee_status/modules/contrib/spotify-buttons.py +++ b/bumblebee_status/modules/contrib/spotify-buttons.py @@ -5,6 +5,7 @@ import core.module import core.widget import core.input import core.decorators +import util.format """Displays the current song being played and allows pausing, skipping ahead, and skipping back. @@ -25,7 +26,7 @@ class Module(core.module.Module): self.__layout = self.parameter( "layout", - "spotify-buttons.song spotify-buttons.prev spotify-buttons.pause spotify-buttons.next", + util.format.aslist("spotify-buttons.song,spotify-buttons.prev,spotify-buttons.pause,spotify-buttons.next"), ) self.__song = "" @@ -63,7 +64,7 @@ class Module(core.module.Module): #add widgets widget_map = {} - for widget_name in self.__layout.split(): + for widget_name in self.__layout: widget = self.add_widget(name=widget_name) if widget_name == "spotify-buttons.prev": widget_map[widget] = {