Skip to content

Commit

Permalink
Remove unused imports and document library window
Browse files Browse the repository at this point in the history
  • Loading branch information
orontee committed Jul 12, 2023
1 parent a84c802 commit b92d87b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
26 changes: 26 additions & 0 deletions argos/widgets/librarywindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,32 @@ class DirectoryItemType(IntEnum):

@Gtk.Template(resource_path="/io/github/orontee/Argos/ui/library_window.ui")
class LibraryWindow(Gtk.Box):
"""Vertical box with stack of widgets dedicated to library browsing.
It also contains a condensed playing box to ease access to playback
controls.
The stack is contained in an overlay used to display to notify library
loading progress.
The stack contains:
- The ``directory_page`` page to view a directory content
(implemented through Gtk.IconView). It's able to display child
directories, albums, playlists and tracks.
- The ``album_details_page`` page to view details on an album (see
``AlbumDetailsBox``).
- The ``tracks_view_page`` page to view a track list (see ``TracksView``).
Whether entering a directory must switch to the ``tracks_view_page``
page, depends on the entered directory: It should contain only tracks.
The setting ``disable-tracks-view-pattern`` can be used to disable that
behavior.
"""

__gtype_name__ = "LibraryWindow"

library_overlay: Gtk.Overlay = Gtk.Template.Child()
Expand Down
1 change: 0 additions & 1 deletion argos/widgets/tracksview.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from gi.repository import Gio, GLib, GObject, Gtk

from argos.message import MessageType
from argos.model import DirectoryModel, TrackModel
from argos.utils import ms_to_text
from argos.widgets.trackbox import TrackBox
Expand Down

0 comments on commit b92d87b

Please sign in to comment.