コード例 #1
0
 def __init__(self, plugin, selected_playlist=None):
     
     self.plugin = plugin
     
     guiutil.initialize_from_xml(self)
     
     self.info_bar = dialogs.MessageBar(self.info_bar, type=gtk.MESSAGE_ERROR, 
                                        buttons=gtk.BUTTONS_CLOSE)
     
     self.__build_template_list()
     self.__build_playlist_list(selected_playlist)
     self.__initialize_presets()
     
     self.__tag_widgets = []
     
     self.window.show_all()
     
     def tag_data_key(td):
         if td:
             return td.translated_name
     
     # convenience
     td = tag_data.values()
     
     # Add grouptagger to the list
     gt = get_default_tagdata('__grouptagger')
     gt.translated_name = _('GroupTagger')
     
     td.append(gt)
     
     self.__sorted_tags = sorted(td, key=tag_data_key)
 
     # setup the selected template
     guiutil.persist_selection(self.template_list, 0, 'plugin/playlistanalyzer/last_tmpl')
コード例 #2
0
ファイル: analyzer_dialog.py プロジェクト: awandepan/exaile
 def __init__(self, plugin, selected_playlist=None):
     
     self.plugin = plugin
     
     guiutil.initialize_from_xml(self)
     
     self.info_bar = dialogs.MessageBar(self.info_bar, type=Gtk.MessageType.ERROR, 
                                        buttons=Gtk.ButtonsType.CLOSE)
     
     self.__build_template_list()
     self.__build_playlist_list(selected_playlist)
     self.__initialize_presets()
     
     self.__tag_widgets = []
     
     self.window.show_all()
     
     def tag_data_key(td):
         if td:
             return td.translated_name
     
     # convenience
     td = tag_data.values()
     
     # Add grouptagger to the list
     gt = get_default_tagdata('__grouptagger')
     gt.translated_name = _('GroupTagger')
     
     td.append(gt)
     
     self.__sorted_tags = sorted(td, key=tag_data_key)
 
     # setup the selected template
     guiutil.persist_selection(self.template_list, 0, 'plugin/playlistanalyzer/last_tmpl')
コード例 #3
0
ファイル: gt_mass.py プロジェクト: eri-trabiccolo/exaile
 def __init__(self, exaile):
     
     self.exaile = exaile
     
     initialize_from_xml(self)
     
     self.tracks_list.get_model().set_sort_column_id(1, gtk.SORT_ASCENDING)
     
     # initialize playlist list
     model = self.playlists.get_model()
     
     for pl in exaile.smart_playlists.list_playlists():
         model.append((True, pl))
         
     for pl in exaile.playlists.list_playlists():
         model.append((False, pl))
     
     self.window.show_all()
コード例 #4
0
ファイル: gt_mass.py プロジェクト: thiblahute/exaile
    def __init__(self, exaile):

        self.exaile = exaile

        initialize_from_xml(self)

        self.tracks_list.get_model().set_sort_column_id(1, gtk.SORT_ASCENDING)

        # initialize playlist list
        model = self.playlists.get_model()

        for pl in exaile.smart_playlists.list_playlists():
            model.append((True, pl))

        for pl in exaile.playlists.list_playlists():
            model.append((False, pl))

        self.window.show_all()