예제 #1
0
 def load_cover_art_providers(self):
     """Load available providers, initialize provider-specific options, restore state of each
     """
     self.ui.ca_providers_list.clear()
     for p in cover_art_providers():
         self.ui.ca_providers_list.addItem(
             CheckboxListItem(_(p.title), checked=p.enabled, data=p.name))
예제 #2
0
파일: cover.py 프로젝트: zer03nvy/picard
 def load_cover_art_providers(self):
     """Load available providers, initialize provider-specific options, restore state of each
     """
     providers = cover_art_providers()
     for provider in providers:
         try:
             title = _(provider.TITLE)
         except AttributeError:
             title = provider.NAME
         checked = is_provider_enabled(provider.NAME)
         self.ui.ca_providers_list.addItem(
             CheckboxListItem(title, checked=checked, data=provider.NAME))