Example #1
0
 def getMusicAlbumlist(self, widget, data):
     """
     get the music list according to the selected music type
     """
     text = widget.get_active_text().decode('utf8')
     
     if text != '-Select-':
         self.album_page_combo.set_sensitive(False)
         print 'Selected music type=', text
         gmbox.get_album_IDs(text, self.updatePageDownloadProgress, self.updateMusicAlbumTreeView)
Example #2
0
 def run(self):
     has_more = False
     if self.type == 2:
         has_more = gmbox.searchalbum(self.text, self.page)
     else:
         has_more = gmbox.get_album_IDs(self.text, self.page)
     if has_more:
         next_page = self.page + 1
     else:
         next_page = 0
     self.callback(gmbox.albumlist, self.type, self.text, next_page)