def configFeatures(self): self.config = ConfigWindow(self) self.header.config = ConfigHeader(self.header) self.downloadFrame.config = ConfigDownloadFrame(self.downloadFrame) self.searchArea.config = ConfigSearchArea(self.searchArea) self.navigation.config = ConfigNavigation(self.navigation) self.nativeMusic.config = ConfigNative(self.nativeMusic) self.mainContent.config = ConfigMainContent(self.mainContent) self.detailSings.config = ConfigDetailSings(self.detailSings) self.indexNetEaseSings.config = ConfigNetEase(self.indexNetEaseSings) self.indexXiamiSings.config = ConfigXiami(self.indexXiamiSings) self.indexQQSings.config = ConfigQQ(self.indexQQSings) self.systemTray.config = ConfigSystemTray(self.systemTray) self.recommendFrame.config = ConfigRecommendFrame(self.recommendFrame) self.indexNetEaseSings.config.initThread() self.indexXiamiSings.config.initThread() self.indexQQSings.config.initThread() # 当前耦合度过高。 self.downloadFrame.config.getDownloadSignal() self.config.pullRecommendSong() # move to center. screen = QApplication.desktop().availableGeometry() self.playWidgets.desktopLyric.resize(screen.width(), 50) self.playWidgets.desktopLyric.move(0, screen.height() - 100)
def configFeatures(self): self.config = ConfigWindow(self) self.header.config = ConfigHeader(self.header) self.searchArea.config = ConfigSearchArea(self.searchArea) self.navigation.config = ConfigNavigation(self.navigation) self.nativeMusic.config = ConfigNative(self.nativeMusic) self.mainContent.config = ConfigMainContent(self.mainContent) self.detailSings.config = ConfigDetailSings(self.detailSings) self.mainContent.indexNetEaseSings.config = ConfigNetEase( self.mainContent.indexNetEaseSings) self.systemTray.config = ConfigSystemTray(self.systemTray)
def configFeatures(self): self.config = ConfigWindow(self) self.header.config = ConfigHeader(self.header) self.searchArea.config = ConfigSearchArea(self.searchArea) self.navigation.config = ConfigNavigation(self.navigation) self.nativeMusic.config = ConfigNative(self.nativeMusic) self.mainContent.config = ConfigMainContent(self.mainContent) self.detailSings.config = ConfigDetailSings(self.detailSings) self.indexNetEaseSings.config = ConfigNetEase(self.indexNetEaseSings) self.indexXiamiSings.config = ConfigXiami(self.indexXiamiSings) self.indexQQSings.config = ConfigQQ(self.indexQQSings) self.systemTray.config = ConfigSystemTray(self.systemTray) self.indexNetEaseSings.config.initThread() self.indexXiamiSings.config.initThread() self.indexQQSings.config.initThread() # test desktop lyric。 screen = QApplication.desktop().availableGeometry() self.playWidgets.desktopLyric.resize(screen.width(), 50) self.playWidgets.desktopLyric.move(0, screen.height() - 100) self.playWidgets.desktopLyric.show()