Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
    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()