[gnome-music/wip/jfelder/artistsview-selection: 7/8] artistalbumwidget: Add missing docstring



commit fedd1cb09c3f2177de2887b6c2d9aa4df6971e9f
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]