[gnome-music/wip/jfelder/artistsview-selection: 40/41] artistalbumwidget: Add missing docstring



commit 333af098a51a8c3b0ae2a0e02c4d04705f1a9817
Author: Jean Felder <jfelder src gnome org>
Date:   Tue Mar 24 20:44:31 2020 +0100

    artistalbumwidget: Add missing docstring

 gnomemusic/widgets/artistalbumwidget.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/gnomemusic/widgets/artistalbumwidget.py b/gnomemusic/widgets/artistalbumwidget.py
index 716fa365..e012e7a2 100644
--- a/gnomemusic/widgets/artistalbumwidget.py
+++ b/gnomemusic/widgets/artistalbumwidget.py
@@ -31,6 +31,11 @@ from gnomemusic.widgets.songwidget import SongWidget
 
 @Gtk.Template(resource_path='/org/gnome/Music/ui/ArtistAlbumWidget.ui')
 class ArtistAlbumWidget(Gtk.Box):
+    """"Widget containing one album by an artist
+
+    The album cover and some information on one side and a
+    DiscListBox (list of all discs of the album) on the other side.
+    """
 
     __gtype_name__ = 'ArtistAlbumWidget'
 
@@ -49,6 +54,12 @@ class ArtistAlbumWidget(Gtk.Box):
 
     def __init__(
             self, corealbum, size_group=None, cover_size_group=None):
+        """Initialize the ArtistAlbumWidget
+
+        :param CoreAlbum corealbum: The CoreAlbum object
+        :param GtkSizeGroup size_group: SizeGroup for the discs
+        :param GtkSizeGroup cover_size_group: SizeGroup for the cover
+        """
         super().__init__(orientation=Gtk.Orientation.HORIZONTAL)
 
         self._size_group = size_group


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]