Esempio n. 1
0
 def getMusiclist(self, widget, data):
     """
     get the music list according to the selected music type
     """
    
     text = widget.get_active_text().decode('utf8')
     
     if text != '-Select-':
         self.music_page_combo.set_sensitive(False)
         print 'Selected music type=', text
         gmbox.get_list(text, self.updatePageDownloadProgress, self.updateTreeView)
Esempio n. 2
0
 def run(self):
     has_more = False
     if self.type == 1:
         has_more = gmbox.search(self.text, self.page)
     else:
         has_more = gmbox.get_list(self.text, self.page)
     if has_more:
         next_page = self.page + 1
     else:
         next_page = 0
     self.callback(gmbox.songlist, self.type, self.text, next_page)