Example #1
0
 def __init__(self):
     PlaylistWidget.__init__(self, col_names=(
         ('<pixbuf>:', 20, 0),
         ('Track', 25, 0),
         ('Artist', 100, 0),
         ('Album', 150, 0),
         ('Title', 200, 0),
         ('Date', 70, 0),
         ('Genre', 150, 0)
     ))
     self._create_menu()
Example #2
0
 def __init__(self):
     PlaylistWidget.__init__(self, col_names=(
         ('<pixbuf>:', 30, 0.0),
         ('Track', 50, 1.0),
         ('Artist', 150, 0.0),
         ('Album', 200, 1.0),
         ('Title', 250, 0.0),
         ('Date', 100, 0),
         ('Genre', 200, 1)
     ))
     self._create_menu()
     GLib.timeout_add(100, lambda: self.do_search('*'))
Example #3
0
 def __init__(self, queue_only):
     PlaylistWidget.__init__(self, col_names=(
         '<pixbuf>:',
         'Artist',
         'Album',
         'Title',
         'Date',
         'Genre',
         '<progress>:Playcount'
     ))
     self._queue_only = queue_only
     g.client.signal_add('client-event', self._on_client_event)