(self, name=None, author=None, pic=None)
方便设置信息。
方便设置信息。
方便设置信息。
def setShortInfo(self, name=None, author=None, pic=None):
        """方便设置信息。"""
        if pic:
            cacheList = os.listdir(cacheFolder)
            names = str(pic[pic.rfind('/')+1:])
            if names in cacheList:
                pic = cacheFolder+'/'+names

            self.shortInfo.musicPic.setSrc(pic)

        self.shortInfo.musicName.setText(name)
        self.shortInfo.musicAuthor.setText(author)
def setShortInfo ( self , name = None , author = None , pic = None ) : if pic : cacheList = os . listdir ( cacheFolder ) names = str ( pic [ pic . rfind ( '/' ) + 1 : ] ) if names in cacheList : pic = cacheFolder + '/' + names self . shortInfo . musicPic . setSrc ( pic ) self . shortInfo . musicName . setText ( name ) self . shortInfo . musicAuthor . setText ( author )