(self)
设置进度条君。
设置进度条君。
设置进度条君。
def setSliders(self):
        """设置进度条君。"""
        self.slider = QSlider(self)
        self.slider.setMinimumHeight(5)
        self.slider.setMinimumWidth(440)
        # 将范围设置成1000滚动时更舒服。
        self.slider.setRange(0, 1000)
        self.slider.setObjectName("slider")
        self.slider.setOrientation(Qt.Horizontal)
        self.slider.sliderReleased.connect(self.sliderEvent)
        self.slider.sliderPressed.connect(self.sliderPressEvent)

        self.volumeSlider = QSlider(self)
        self.volumeSlider.setValue(100)
        self.volumeSlider.setMinimumHeight(5)
        self.volumeSlider.setObjectName("volumeSlider")
        self.volumeSlider.setOrientation(Qt.Horizontal)
        self.volumeSlider.valueChanged.connect(self.volumeChangedEvent)
def setSliders ( self ) : self . slider = QSlider ( self ) self . slider . setMinimumHeight ( 5 ) self . slider . setMinimumWidth ( 440 ) # 将范围设置成1000滚动时更舒服。 self . slider . setRange ( 0 , 1000 ) self . slider . setObjectName ( "slider" ) self . slider . setOrientation ( Qt . Horizontal ) self . slider . sliderReleased . connect ( self . sliderEvent ) self . slider . sliderPressed . connect ( self . sliderPressEvent ) self . volumeSlider = QSlider ( self ) self . volumeSlider . setValue ( 100 ) self . volumeSlider . setMinimumHeight ( 5 ) self . volumeSlider . setObjectName ( "volumeSlider" ) self . volumeSlider . setOrientation ( Qt . Horizontal ) self . volumeSlider . valueChanged . connect ( self . volumeChangedEvent )