[gnome-music/wip/jfelder/artistsview-selection: 16/17] artistalbumwidget: Add missing docstring



commit 5953c3e9325c306b46c7aa17173482f4f30d0c20
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 ee2faea4..9320abfa 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'
 
@@ -48,6 +53,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]