emmental/playlist/__init__.py
Anna Schumaker fc9b734e38 playlist: Initialize column widths to some reasonable values
And save / restore through the settings file.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2021-07-23 12:56:02 -04:00

22 lines
643 B
Python

# Copyright 2021 (c) Anna Schumaker.
from . import column
from gi.repository import Gtk
Selection = Gtk.SingleSelection()
View = Gtk.ColumnView()
View.set_hexpand(True)
View.set_model(Selection)
View.append_column(column.Column("#"))
View.append_column(column.Column("Title", width=250))
View.append_column(column.Column("Length"))
View.append_column(column.Column("Artist", width=150))
View.append_column(column.Column("Album", width=150))
View.append_column(column.Column("Year"))
View.append_column(column.Column("Count"))
View.append_column(column.Column("Last Played", width=150))
Scroll = Gtk.ScrolledWindow()
Scroll.set_child(View)