def __init__(self, source_tab): gtk.VBox.__init__(self) self.source_tab = source_tab self.song_view = MultiDragSongView() self.search_prompt = SearchPrompt(_("Library")) self.add(self.song_view) self.song_view.connect("double-click-item", self.__on_double_click_item)
def __init__(self, source_tab): gtk.VBox.__init__(self) self.source_tab = source_tab self.webcast_view = MultiDragWebcastView() self.webcast_view.connect_after("double-click-item", self.__on_double_click_item) self.webcast_view_sw = self.webcast_view.get_scrolled_window() self.search_prompt = SearchPrompt(_("Radio")) self.add(self.webcast_view_sw)
def __init__(self, source_tab): gtk.VBox.__init__(self) self.source_tab = source_tab self.radio_view = RadioIconView(tag=TAG_SEARCH, limit=24, padding_y=10, has_add=False) self.radio_view_sw = self.radio_view.get_scrolled_window() self.radio_view.fetch_failed = self.switch_to_search_prompt self.radio_view.fetch_successed = self.switch_to_radio_view self.radio_view.connect_after("single-click-item", self.on_radio_view_click_item) self.search_prompt = SearchPrompt(_("MusicFM")) self.add(self.radio_view_sw) self.keyword = ""