(self)
设置布局。
设置布局。
设置布局。
def setLayouts(self):
        """设置布局。"""
        self.mainLayout = QHBoxLayout()

        self.mainLayout.addWidget(self.previousButton)
        self.mainLayout.addWidget(self.playButton)
        self.mainLayout.addWidget(self.pauseButton)
        self.mainLayout.addWidget(self.nextButton)

        self.mainLayout.addWidget(self.currentTime)
        self.mainLayout.addWidget(self.slider)
        self.mainLayout.addWidget(self.countTime)

        self.mainLayout.addWidget(self.volume)
        self.mainLayout.addWidget(self.noVolume)

        self.mainLayout.addWidget(self.volumeSlider)
        self.mainLayout.addSpacing(10)

        self.mainLayout.addWidget(self.single)
        self.mainLayout.addWidget(self.repeat)
        self.mainLayout.addWidget(self.shuffle)

        self.mainLayout.addSpacing(10)
        self.mainLayout.addWidget(self.lyricButton)
        self.mainLayout.addSpacing(10)

        self.mainLayout.addWidget(self.playlist)
        self.mainLayout.addStretch(1)
        self.mainLayout.setContentsMargins(0, 0, 0, 0)
        self.setLayout(self.mainLayout)
def setLayouts ( self ) : self . mainLayout = QHBoxLayout ( ) self . mainLayout . addWidget ( self . previousButton ) self . mainLayout . addWidget ( self . playButton ) self . mainLayout . addWidget ( self . pauseButton ) self . mainLayout . addWidget ( self . nextButton ) self . mainLayout . addWidget ( self . currentTime ) self . mainLayout . addWidget ( self . slider ) self . mainLayout . addWidget ( self . countTime ) self . mainLayout . addWidget ( self . volume ) self . mainLayout . addWidget ( self . noVolume ) self . mainLayout . addWidget ( self . volumeSlider ) self . mainLayout . addSpacing ( 10 ) self . mainLayout . addWidget ( self . single ) self . mainLayout . addWidget ( self . repeat ) self . mainLayout . addWidget ( self . shuffle ) self . mainLayout . addSpacing ( 10 ) self . mainLayout . addWidget ( self . lyricButton ) self . mainLayout . addSpacing ( 10 ) self . mainLayout . addWidget ( self . playlist ) self . mainLayout . addStretch ( 1 ) self . mainLayout . setContentsMargins ( 0 , 0 , 0 , 0 ) self . setLayout ( self . mainLayout )