And save / restore through the settings file. Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
22 lines
643 B
Python
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)
|