def __init__(self, album, height, view_type, reveal, cover_uri, parent): """ Init row widgets @param album as Album @param height as int @param view_type as ViewType @param reveal as bool @param parent as AlbumListView """ Gtk.ListBoxRow.__init__(self) TracksView.__init__(self, view_type) if view_type & ViewType.DND: DNDRow.__init__(self) self.__next_row = None self.__previous_row = None self.__revealer = None self.__parent = parent self.__reveal = reveal self.__cover_uri = cover_uri self._artwork = None self._album = album self.__view_type = view_type self.__cancellable = Gio.Cancellable() self.set_sensitive(False) self.set_property("height-request", height) self.connect("destroy", self.__on_destroy)
def __init__(self, album, height, list_type, reveal, parent): """ Init row widgets @param album as Album @param height as int @param list_type as RowListType @param reveal as bool @param parent as AlbumListView """ Gtk.ListBoxRow.__init__(self) TracksView.__init__(self, list_type) if list_type & RowListType.DND: DNDRow.__init__(self) self.__revealer = None self.__parent = parent self.__reveal = reveal self._artwork = None self._album = album self.__list_type = list_type self.__play_indicator = None self.set_sensitive(False) self.set_property("height-request", height) # 15 for scrollbar overlay self.set_margin_end(15) self.connect("destroy", self.__on_destroy)
def __init__(self, album, view_type): """ Init view @param album as Album @param view_type as ViewType """ TracksView.__init__(self, view_type) self.__album = album self.__discs = [] self.__discs_to_load = [] self.__populated = False self.__show_tag_tracknumber = App().settings.get_value( "show-tag-tracknumber")
def __init__(self): """ Init view @param album as Album @param view_type as ViewType """ TracksView.__init__(self, ViewType.SEARCH) self.__track_ids = [] self._add_disc_container(0) self._tracks_widget_left[0].show() self._tracks_widget_right[0].show() return [ (App().window, "notify::folded", "_on_container_folded"), ]
def __init__(self, album, genre_ids, artist_ids, show_cover): """ Init detailed album widget @param album as Album @param label_height as int @param genre ids as [int] @param artist ids as [int] @param show_cover as bool """ Gtk.Bin.__init__(self) AlbumWidget.__init__(self, album, genre_ids, artist_ids) TracksView.__init__(self, RowListType.TWO_COLUMNS) self._widget = None self.__show_cover = show_cover self.__width_allocation = 0 self.connect("size-allocate", self.__on_size_allocate)
def __init__(self, album, genre_ids, artist_ids, view_type): """ Init detailed album widget @param album as Album @param label_height as int @param genre_ids as [int] @param artist_ids as [int] @param view_type as ViewType """ Gtk.Grid.__init__(self) AlbumWidget.__init__(self, album, genre_ids, artist_ids) TracksView.__init__(self, view_type) self.set_row_spacing(2) self.set_orientation(Gtk.Orientation.VERTICAL) self.__width_allocation = 0 self.__banner = None self.connect("size-allocate", self.__on_size_allocate)
def __init__(self, album, artist_ids, genre_ids, view_type): """ Init ArtistView @param album as Album @param artist_ids as [int] @param genre_ids as [int] @param view_type as ViewType """ LazyLoadingView.__init__(self, view_type) TracksView.__init__(self, view_type) ViewController.__init__(self, ViewControllerType.ALBUM) self._album = album self.__genre_ids = genre_ids self.__artist_ids = artist_ids self.__grid = Gtk.Grid() self.__grid.set_property("vexpand", True) self.__grid.set_row_spacing(10) self.__grid.set_margin_start(MARGIN) self.__grid.set_margin_end(MARGIN) self.__grid.set_orientation(Gtk.Orientation.VERTICAL) self.__grid.show()