Пример #1
0
 def getMusiclist(self, keywords, data):
     """
     get the music list according to the key words
    """
           
     if keywords != None:
         gmbox.search(keywords, self.updateTreeView)
Пример #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)