def _widgets_lyrics(self): horiz_spacing = 2 vert_spacing = 1 self.info_lyrics = ui.expander(markup="<b>%s</b>" % _("Lyrics"), expand=self.config.info_lyrics_expanded, can_focus=False) self.info_lyrics.connect("activate", self._expanded, "lyrics") lyricsbox = gtk.VBox() self.lyricsText = ui.textview(text="", edit=False, wrap=True) self._populate_lyrics_tag_table() self.lyricsSw = ui.scrollwindow(policy_x=gtk.POLICY_NEVER, policy_y=gtk.POLICY_NEVER, add=self.lyricsText) lyricsbox.pack_start(self.lyricsSw, True, True, vert_spacing) lyricsbox_bottom = gtk.HBox() self._searchlabel = ui.label(y=0) self._editlyricslabel = ui.label(y=0) searchevbox = ui.eventbox(add=self._searchlabel) editlyricsevbox = ui.eventbox(add=self._editlyricslabel) self._apply_link_signals(searchevbox, 'search', _("Search Lyricwiki.org for lyrics")) self._apply_link_signals(editlyricsevbox, 'editlyrics', _("Edit lyrics at Lyricwiki.org")) lyricsbox_bottom.pack_start(searchevbox, False, False, horiz_spacing) lyricsbox_bottom.pack_start(editlyricsevbox, False, False, horiz_spacing) lyricsbox.pack_start(lyricsbox_bottom, False, False, vert_spacing) self.info_lyrics.add(lyricsbox) return self.info_lyrics
def _widgets_lyrics(self): horiz_spacing = 2 vert_spacing = 1 self.info_lyrics = ui.expander(markup='<b>%s</b>' % _('Lyrics'), expand=self.config.info_lyrics_expanded, can_focus=False) self.info_lyrics.connect('activate', self._expanded, 'lyrics') lyricsbox = gtk.VBox() self.lyricsText = ui.label(markup=' ', y=0, select=True, wrap=True) lyricsbox.pack_start(self.lyricsText, True, True, vert_spacing) lyricsbox_bottom = gtk.HBox() self._searchlabel = ui.label(y=0) self._editlyricslabel = ui.label(y=0) searchevbox = ui.eventbox(add=self._searchlabel) editlyricsevbox = ui.eventbox(add=self._editlyricslabel) self._apply_link_signals(searchevbox, 'search', _('Search Lyricwiki.org for lyrics')) self._apply_link_signals(editlyricsevbox, 'editlyrics', _('Edit lyrics at Lyricwiki.org')) lyricsbox_bottom.pack_start(searchevbox, False, False, horiz_spacing) lyricsbox_bottom.pack_start(editlyricsevbox, False, False, horiz_spacing) lyricsbox.pack_start(lyricsbox_bottom, False, False, vert_spacing) self.info_lyrics.add(lyricsbox) return self.info_lyrics
def _widgets_album(self): info_album = ui.expander(markup='<b>%s</b>' % _('Album Info'), expand=self.config.info_album_expanded, can_focus=False) info_album.connect('activate', self._expanded, 'album') self.albumText = ui.label(markup=' ', y=0, select=True, wrap=True) info_album.add(self.albumText) return info_album
def _widgets_album(self): info_album = ui.expander(markup="<b>%s</b>" % _("Album Info"), expand=self.config.info_album_expanded, can_focus=False) info_album.connect("activate", self._expanded, "album") self.albumText = ui.label(markup=" ", y=0, select=True, wrap=True) info_album.add(self.albumText) return info_album
def _widgets_song(self): info_song = ui.expander(markup="<b>%s</b>" % _("Song Info"), expand=self.config.info_song_expanded, can_focus=False) info_song.connect("activate", self._expanded, "song") self.info_labels = {} self.info_boxes_in_more = [] labels = [(_("Title"), 'title', False, "", False), (_("Artist"), 'artist', True, _("Launch artist in Wikipedia"), False), (_("Album"), 'album', True, _("Launch album in Wikipedia"), False), (_("Date"), 'date', False, "", False), (_("Track"), 'track', False, "", False), (_("Genre"), 'genre', False, "", False), (_("File"), 'file', False, "", True), (_("Bitrate"), 'bitrate', False, "", True)] tagtable = gtk.Table(len(labels), 2) tagtable.set_col_spacings(12) for i, (text, name, link, tooltip, in_more) in enumerate(labels): label = ui.label(markup="<b>%s:</b>" % text, y=0) tagtable.attach(label, 0, 1, i, i + 1, yoptions=gtk.SHRINK) if i == 0: self.info_left_label = label # Using set_selectable overrides the hover cursor that # sonata tries to set for the links, and I can't figure # out how to stop that. So we'll disable set_selectable # for those labels until it's figured out. tmplabel2 = ui.label(wrap=True, y=0, select=not link) if link: tmpevbox = ui.eventbox(add=tmplabel2) self._apply_link_signals(tmpevbox, name, tooltip) to_pack = tmpevbox if link else tmplabel2 tagtable.attach(to_pack, 1, 2, i, i + 1, yoptions=gtk.SHRINK) self.info_labels[name] = tmplabel2 if in_more: self.info_boxes_in_more.append(label) self.info_boxes_in_more.append(to_pack) self._morelabel = ui.label(y=0) self.toggle_more() moreevbox = ui.eventbox(add=self._morelabel) self._apply_link_signals(moreevbox, 'more', _("Toggle extra tags")) self._editlabel = ui.label(y=0) editevbox = ui.eventbox(add=self._editlabel) self._apply_link_signals(editevbox, 'edit', _("Edit song tags")) mischbox = gtk.HBox() mischbox.pack_start(moreevbox, False, False, 3) mischbox.pack_start(editevbox, False, False, 3) tagtable.attach(mischbox, 0, 2, len(labels), len(labels) + 1) inner_hbox = gtk.HBox() inner_hbox.pack_start(self._imagebox, False, False, 6) inner_hbox.pack_start(tagtable, False, False, 6) info_song.add(inner_hbox) return info_song
def _widgets_song(self): info_song = ui.expander(markup="<b>%s</b>" % _("Song Info"), expand=self.config.info_song_expanded, can_focus=False) info_song.connect("activate", self._expanded, "song") self.info_labels = {} self.info_boxes_in_more = [] labels = [(_("Title"), 'title', False, "", False), (_("Artist"), 'artist', True, _("Launch artist in Wikipedia"), False), (_("Album"), 'album', True, _("Launch album in Wikipedia"), False), (_("Date"), 'date', False, "", False), (_("Track"), 'track', False, "", False), (_("Genre"), 'genre', False, "", False), (_("File"), 'file', False, "", True), (_("Bitrate"), 'bitrate', False, "", True)] tagtable = gtk.Table(len(labels), 2) tagtable.set_col_spacings(12) for i,(text, name, link, tooltip, in_more) in enumerate(labels): label = ui.label(markup="<b>%s:</b>" % text, y=0) tagtable.attach(label, 0, 1, i, i+1, yoptions=gtk.SHRINK) if i == 0: self.info_left_label = label # Using set_selectable overrides the hover cursor that # sonata tries to set for the links, and I can't figure # out how to stop that. So we'll disable set_selectable # for those labels until it's figured out. tmplabel2 = ui.label(wrap=True, y=0, select=not link) if link: tmpevbox = ui.eventbox(add=tmplabel2) self._apply_link_signals(tmpevbox, name, tooltip) to_pack = tmpevbox if link else tmplabel2 tagtable.attach(to_pack, 1, 2, i, i+1, yoptions=gtk.SHRINK) self.info_labels[name] = tmplabel2 if in_more: self.info_boxes_in_more.append(label) self.info_boxes_in_more.append(to_pack) self._morelabel = ui.label(y=0) self.toggle_more() moreevbox = ui.eventbox(add=self._morelabel) self._apply_link_signals(moreevbox, 'more', _("Toggle extra tags")) self._editlabel = ui.label(y=0) editevbox = ui.eventbox(add=self._editlabel) self._apply_link_signals(editevbox, 'edit', _("Edit song tags")) mischbox = gtk.HBox() mischbox.pack_start(moreevbox, False, False, 3) mischbox.pack_start(editevbox, False, False, 3) tagtable.attach(mischbox, 0, 2, len(labels), len(labels) + 1) inner_hbox = gtk.HBox() inner_hbox.pack_start(self._imagebox, False, False, 6) inner_hbox.pack_start(tagtable, False, False, 6) info_song.add(inner_hbox) return info_song
def _widgets_album(self): info_album = ui.expander(markup="<b>%s</b>" % _("Album Info"), expand=self.config.info_album_expanded, can_focus=False) info_album.connect("activate", self._expanded, "album") self.albumText = ui.textview(text="", edit=False, wrap=True) self.albumSw = ui.scrollwindow(policy_x=gtk.POLICY_NEVER, policy_y=gtk.POLICY_NEVER, add=self.albumText) info_album.add(self.albumSw) return info_album
def widgets_initialize(self, info_scrollwindow): vert_spacing = 1 horiz_spacing = 2 margin = 5 outter_hbox = gtk.HBox() outter_vbox = gtk.VBox() # Song info info_song = ui.expander(markup="<b>" + _("Song Info") + "</b>", expand=self.config.info_song_expanded, can_focus=False) info_song.connect("activate", self.info_expanded, "song") inner_hbox = gtk.HBox() inner_hbox.pack_start(self.info_imagebox, False, False, horiz_spacing) self.info_tagbox = gtk.VBox() labels_left = [] self.info_type = {} self.info_labels = [] self.info_boxes_in_more = [] labels_type = ['title', 'artist', 'album', 'date', 'track', 'genre', 'file', 'bitrate'] labels_text = [_("Title"), _("Artist"), _("Album"), _("Date"), _("Track"), _("Genre"), _("File"), _("Bitrate")] labels_link = [False, True, True, False, False, False, False, False] labels_tooltip = ["", _("Launch artist in Wikipedia"), _("Launch album in Wikipedia"), "", "", "", "", ""] labels_in_more = [False, False, False, False, False, False, True, True] for i in range(len(labels_text)): self.info_type[labels_text[i]] = i tmphbox = gtk.HBox() if labels_in_more[i]: self.info_boxes_in_more += [tmphbox] tmplabel = ui.label(markup="<b>" + labels_text[i] + ":</b>", y=0) if i == 0: self.info_left_label = tmplabel if not labels_link[i]: tmplabel2 = ui.label(wrap=True, y=0, select=True) else: # Using set_selectable overrides the hover cursor that sonata # tries to set for the links, and I can't figure out how to # stop that. So we'll disable set_selectable for these two # labels until it's figured out. tmplabel2 = ui.label(wrap=True, y=0, select=False) if labels_link[i]: tmpevbox = ui.eventbox(add=tmplabel2) self.info_apply_link_signals(tmpevbox, labels_type[i], labels_tooltip[i]) tmphbox.pack_start(tmplabel, False, False, horiz_spacing) if labels_link[i]: tmphbox.pack_start(tmpevbox, False, False, horiz_spacing) else: tmphbox.pack_start(tmplabel2, False, False, horiz_spacing) self.info_labels += [tmplabel2] labels_left += [tmplabel] self.info_tagbox.pack_start(tmphbox, False, False, vert_spacing) ui.set_widths_equal(labels_left) mischbox = gtk.HBox() self.info_morelabel = ui.label(y=0) moreevbox = ui.eventbox(add=self.info_morelabel) self.info_apply_link_signals(moreevbox, 'more', _("Toggle extra tags")) self.info_editlabel = ui.label(y=0) editevbox = ui.eventbox(add=self.info_editlabel) self.info_apply_link_signals(editevbox, 'edit', _("Edit song tags")) mischbox.pack_start(moreevbox, False, False, horiz_spacing) mischbox.pack_start(editevbox, False, False, horiz_spacing) self.info_tagbox.pack_start(mischbox, False, False, vert_spacing) inner_hbox.pack_start(self.info_tagbox, False, False, horiz_spacing) info_song.add(inner_hbox) outter_vbox.pack_start(info_song, False, False, margin) # Lyrics self.info_lyrics = ui.expander(markup="<b>" + _("Lyrics") + "</b>", expand=self.config.info_lyrics_expanded, can_focus=False) self.info_lyrics.connect("activate", self.info_expanded, "lyrics") lyricsbox = gtk.VBox() lyricsbox_top = gtk.HBox() self.lyricsText = ui.label(markup=" ", y=0, select=True, wrap=True) lyricsbox_top.pack_start(self.lyricsText, True, True, horiz_spacing) lyricsbox.pack_start(lyricsbox_top, True, True, vert_spacing) lyricsbox_bottom = gtk.HBox() self.info_searchlabel = ui.label(y=0) self.info_editlyricslabel = ui.label(y=0) searchevbox = ui.eventbox(add=self.info_searchlabel) editlyricsevbox = ui.eventbox(add=self.info_editlyricslabel) self.info_apply_link_signals(searchevbox, 'search', _("Search Lyricwiki.org for lyrics")) self.info_apply_link_signals(editlyricsevbox, 'editlyrics', _("Edit lyrics at Lyricwiki.org")) lyricsbox_bottom.pack_start(searchevbox, False, False, horiz_spacing) lyricsbox_bottom.pack_start(editlyricsevbox, False, False, horiz_spacing) lyricsbox.pack_start(lyricsbox_bottom, False, False, vert_spacing) self.info_lyrics.add(lyricsbox) outter_vbox.pack_start(self.info_lyrics, False, False, margin) # Album info info_album = ui.expander(markup="<b>" + _("Album Info") + "</b>", expand=self.config.info_album_expanded, can_focus=False) info_album.connect("activate", self.info_expanded, "album") albumbox = gtk.VBox() albumbox_top = gtk.HBox() self.albumText = ui.label(markup=" ", y=0, select=True, wrap=True) albumbox_top.pack_start(self.albumText, False, False, horiz_spacing) albumbox.pack_start(albumbox_top, False, False, vert_spacing) info_album.add(albumbox) outter_vbox.pack_start(info_album, False, False, margin) # Finish.. if not self.config.show_lyrics: ui.hide(self.info_lyrics) if not self.config.show_covers: ui.hide(self.info_imagebox) # self.config.info_song_more will be overridden on on_link_click, so # store it in a temporary var.. temp = self.config.info_song_more self.on_link_click(moreevbox, None, 'more') self.config.info_song_more = temp if self.config.info_song_more: self.on_link_click(moreevbox, None, 'more') outter_hbox.pack_start(outter_vbox, False, False, margin) info_scrollwindow.add_with_viewport(outter_hbox)
def widgets_initialize(self, info_scrollwindow): vert_spacing = 1 horiz_spacing = 2 margin = 5 outter_hbox = gtk.HBox() outter_vbox = gtk.VBox() # Song info info_song = ui.expander(markup="<b>" + _("Song Info") + "</b>", expand=self.config.info_song_expanded, can_focus=False) info_song.connect("activate", self.info_expanded, "song") inner_hbox = gtk.HBox() inner_hbox.pack_start(self.info_imagebox, False, False, horiz_spacing) self.info_tagbox = gtk.VBox() labels_left = [] self.info_type = {} self.info_labels = [] self.info_boxes_in_more = [] labels_type = [ 'title', 'artist', 'album', 'date', 'track', 'genre', 'file', 'bitrate' ] labels_text = [ _("Title"), _("Artist"), _("Album"), _("Date"), _("Track"), _("Genre"), _("File"), _("Bitrate") ] labels_link = [False, True, True, False, False, False, False, False] labels_tooltip = [ "", _("Launch artist in Wikipedia"), _("Launch album in Wikipedia"), "", "", "", "", "" ] labels_in_more = [False, False, False, False, False, False, True, True] for i in range(len(labels_text)): self.info_type[labels_text[i]] = i tmphbox = gtk.HBox() if labels_in_more[i]: self.info_boxes_in_more += [tmphbox] tmplabel = ui.label(markup="<b>" + labels_text[i] + ":</b>", y=0) if i == 0: self.info_left_label = tmplabel if not labels_link[i]: tmplabel2 = ui.label(wrap=True, y=0, select=True) else: # Using set_selectable overrides the hover cursor that sonata # tries to set for the links, and I can't figure out how to # stop that. So we'll disable set_selectable for these two # labels until it's figured out. tmplabel2 = ui.label(wrap=True, y=0, select=False) if labels_link[i]: tmpevbox = ui.eventbox(add=tmplabel2) self.info_apply_link_signals(tmpevbox, labels_type[i], labels_tooltip[i]) tmphbox.pack_start(tmplabel, False, False, horiz_spacing) if labels_link[i]: tmphbox.pack_start(tmpevbox, False, False, horiz_spacing) else: tmphbox.pack_start(tmplabel2, False, False, horiz_spacing) self.info_labels += [tmplabel2] labels_left += [tmplabel] self.info_tagbox.pack_start(tmphbox, False, False, vert_spacing) ui.set_widths_equal(labels_left) mischbox = gtk.HBox() self.info_morelabel = ui.label(y=0) moreevbox = ui.eventbox(add=self.info_morelabel) self.info_apply_link_signals(moreevbox, 'more', _("Toggle extra tags")) self.info_editlabel = ui.label(y=0) editevbox = ui.eventbox(add=self.info_editlabel) self.info_apply_link_signals(editevbox, 'edit', _("Edit song tags")) mischbox.pack_start(moreevbox, False, False, horiz_spacing) mischbox.pack_start(editevbox, False, False, horiz_spacing) self.info_tagbox.pack_start(mischbox, False, False, vert_spacing) inner_hbox.pack_start(self.info_tagbox, False, False, horiz_spacing) info_song.add(inner_hbox) outter_vbox.pack_start(info_song, False, False, margin) # Lyrics self.info_lyrics = ui.expander(markup="<b>" + _("Lyrics") + "</b>", expand=self.config.info_lyrics_expanded, can_focus=False) self.info_lyrics.connect("activate", self.info_expanded, "lyrics") lyricsbox = gtk.VBox() lyricsbox_top = gtk.HBox() self.lyricsText = ui.label(markup=" ", y=0, select=True, wrap=True) lyricsbox_top.pack_start(self.lyricsText, True, True, horiz_spacing) lyricsbox.pack_start(lyricsbox_top, True, True, vert_spacing) lyricsbox_bottom = gtk.HBox() self.info_searchlabel = ui.label(y=0) self.info_editlyricslabel = ui.label(y=0) searchevbox = ui.eventbox(add=self.info_searchlabel) editlyricsevbox = ui.eventbox(add=self.info_editlyricslabel) self.info_apply_link_signals(searchevbox, 'search', _("Search Lyricwiki.org for lyrics")) self.info_apply_link_signals(editlyricsevbox, 'editlyrics', _("Edit lyrics at Lyricwiki.org")) lyricsbox_bottom.pack_start(searchevbox, False, False, horiz_spacing) lyricsbox_bottom.pack_start(editlyricsevbox, False, False, horiz_spacing) lyricsbox.pack_start(lyricsbox_bottom, False, False, vert_spacing) self.info_lyrics.add(lyricsbox) outter_vbox.pack_start(self.info_lyrics, False, False, margin) # Album info info_album = ui.expander(markup="<b>" + _("Album Info") + "</b>", expand=self.config.info_album_expanded, can_focus=False) info_album.connect("activate", self.info_expanded, "album") albumbox = gtk.VBox() albumbox_top = gtk.HBox() self.albumText = ui.label(markup=" ", y=0, select=True, wrap=True) albumbox_top.pack_start(self.albumText, False, False, horiz_spacing) albumbox.pack_start(albumbox_top, False, False, vert_spacing) info_album.add(albumbox) outter_vbox.pack_start(info_album, False, False, margin) # Finish.. if not self.config.show_lyrics: ui.hide(self.info_lyrics) if not self.config.show_covers: ui.hide(self.info_imagebox) # self.config.info_song_more will be overridden on on_link_click, so # store it in a temporary var.. temp = self.config.info_song_more self.on_link_click(moreevbox, None, 'more') self.config.info_song_more = temp if self.config.info_song_more: self.on_link_click(moreevbox, None, 'more') outter_hbox.pack_start(outter_vbox, False, False, margin) info_scrollwindow.add_with_viewport(outter_hbox)
def widgets_initialize(self, info_scrollwindow): vert_spacing = 1 horiz_spacing = 2 margin = 5 outter_hbox = gtk.HBox() outter_vbox = gtk.VBox() # Song info info_song = ui.expander( markup="<b>" + _("Song Info") + "</b>", expand=self.config.info_song_expanded, can_focus=False ) info_song.connect("activate", self.info_expanded, "song") inner_hbox = gtk.HBox() inner_hbox.pack_start(self.info_imagebox, False, False, horiz_spacing) self.info_tagbox = gtk.VBox() labels_left = [] self.info_type = {} self.info_labels = [] self.info_boxes_in_more = [] labels = [ (_("Title"), "title", False, "", False), (_("Artist"), "artist", True, _("Launch artist in Wikipedia"), False), (_("Album"), "album", True, _("Launch album in Wikipedia"), False), (_("Date"), "date", False, "", False), (_("Track"), "track", False, "", False), (_("Genre"), "genre", False, "", False), (_("File"), "file", False, "", True), (_("Bitrate"), "bitrate", False, "", True), ] for i, (text, name, link, tooltip, in_more) in enumerate(labels): self.info_type[name] = i tmphbox = gtk.HBox() if in_more: self.info_boxes_in_more += [tmphbox] tmplabel = ui.label(markup="<b>%s:</b>" % text, y=0) if i == 0: self.info_left_label = tmplabel # Using set_selectable overrides the hover cursor that # sonata tries to set for the links, and I can't figure # out how to stop that. So we'll disable set_selectable # for those labels until it's figured out. tmplabel2 = ui.label(wrap=True, y=0, select=not link) if link: tmpevbox = ui.eventbox(add=tmplabel2) self.info_apply_link_signals(tmpevbox, name, tooltip) tmphbox.pack_start(tmplabel, False, False, horiz_spacing) to_pack = tmpevbox if link else tmplabel2 tmphbox.pack_start(to_pack, False, False, horiz_spacing) self.info_labels += [tmplabel2] labels_left += [tmplabel] self.info_tagbox.pack_start(tmphbox, False, False, vert_spacing) ui.set_widths_equal(labels_left) mischbox = gtk.HBox() self.info_morelabel = ui.label(y=0) moreevbox = ui.eventbox(add=self.info_morelabel) self.info_apply_link_signals(moreevbox, "more", _("Toggle extra tags")) self.info_editlabel = ui.label(y=0) editevbox = ui.eventbox(add=self.info_editlabel) self.info_apply_link_signals(editevbox, "edit", _("Edit song tags")) mischbox.pack_start(moreevbox, False, False, horiz_spacing) mischbox.pack_start(editevbox, False, False, horiz_spacing) self.info_tagbox.pack_start(mischbox, False, False, vert_spacing) inner_hbox.pack_start(self.info_tagbox, False, False, horiz_spacing) info_song.add(inner_hbox) outter_vbox.pack_start(info_song, False, False, margin) # Lyrics self.info_lyrics = ui.expander( markup="<b>" + _("Lyrics") + "</b>", expand=self.config.info_lyrics_expanded, can_focus=False ) self.info_lyrics.connect("activate", self.info_expanded, "lyrics") lyricsbox = gtk.VBox() lyricsbox_top = gtk.HBox() self.lyricsText = ui.label(markup=" ", y=0, select=True, wrap=True) lyricsbox_top.pack_start(self.lyricsText, True, True, horiz_spacing) lyricsbox.pack_start(lyricsbox_top, True, True, vert_spacing) lyricsbox_bottom = gtk.HBox() self.info_searchlabel = ui.label(y=0) self.info_editlyricslabel = ui.label(y=0) searchevbox = ui.eventbox(add=self.info_searchlabel) editlyricsevbox = ui.eventbox(add=self.info_editlyricslabel) self.info_apply_link_signals(searchevbox, "search", _("Search Lyricwiki.org for lyrics")) self.info_apply_link_signals(editlyricsevbox, "editlyrics", _("Edit lyrics at Lyricwiki.org")) lyricsbox_bottom.pack_start(searchevbox, False, False, horiz_spacing) lyricsbox_bottom.pack_start(editlyricsevbox, False, False, horiz_spacing) lyricsbox.pack_start(lyricsbox_bottom, False, False, vert_spacing) self.info_lyrics.add(lyricsbox) outter_vbox.pack_start(self.info_lyrics, False, False, margin) # Album info info_album = ui.expander( markup="<b>" + _("Album Info") + "</b>", expand=self.config.info_album_expanded, can_focus=False ) info_album.connect("activate", self.info_expanded, "album") albumbox = gtk.VBox() albumbox_top = gtk.HBox() self.albumText = ui.label(markup=" ", y=0, select=True, wrap=True) albumbox_top.pack_start(self.albumText, False, False, horiz_spacing) albumbox.pack_start(albumbox_top, False, False, vert_spacing) info_album.add(albumbox) outter_vbox.pack_start(info_album, False, False, margin) # Finish.. if not self.config.show_lyrics: ui.hide(self.info_lyrics) if not self.config.show_covers: ui.hide(self.info_imagebox) # self.config.info_song_more will be overridden on on_link_click, so # store it in a temporary var.. temp = self.config.info_song_more self.on_link_click(moreevbox, None, "more") self.config.info_song_more = temp if self.config.info_song_more: self.on_link_click(moreevbox, None, "more") outter_hbox.pack_start(outter_vbox, False, False, margin) info_scrollwindow.add_with_viewport(outter_hbox)