# Python 3.x from string import ascii_letters except ImportError: # Python 2.x from string import letters as ascii_letters import urwid from clay.core import gp, settings_manager from clay.playback.player import get_player from .notifications import notification_area from .hotkeys import hotkey_manager from .clipboard import copy player = get_player() # pylint: disable=invalid-name class SongListItem(urwid.Pile): """ Widget that represents single song item. """ _unicode = settings_manager.get('unicode', 'clay_settings') signals = [ 'activate', 'play', 'append-requested', 'unappend-requested', 'clear-queue', 'station-requested', 'context-menu-requested' ]
""" Components for "Queue" page. """ import urwid from .page import AbstractPage from clay.playback.player import get_player from clay.ui.urwid import SongListBox player = get_player() class QueuePage(urwid.Columns, AbstractPage): """ Queue page. """ @property def name(self): return 'Queue' @property def key(self): return 7 @property def slug(self): """ Return page ID (str). """ return "queue"