Ejemplo n.º 1
0
 def loadTagContentList(self, tagType) :
 
     self.getControl( TAGS_CONTENT_LIST ).reset()
     TagContents = [u"%s"%k  for k in MPDB.list_Tags(tagType)]
     TotalTagContents = len(TagContents)
     self.CurrentlySelectedTagType = tagType
     
     for TagContent in TagContents:
             
         TagContentItem = xbmcgui.ListItem( label=tagType, label2=TagContent) 
         TagContentItem.setProperty( "summary", TagContent )    
         
         if self.isContentChecked(tagType, TagContent) == 0:
             TagContentItem.setProperty( "checked", "transparent.png")
         else:
             TagContentItem.setProperty( "checked", "checkbutton.png")
         
         self.getControl( TAGS_CONTENT_LIST ).addItem( TagContentItem )