Skip to main content

PyQt media slider

Project description

pyqt-media-slider

This is QSlider which supports the smoothly draggable handle, direct handle placement to click position for media(audio, video).

Requirements

PyQt5 >= 5.8

Setup

python -m pip install pyqt-media-slider

Included Packages

Signal

  • pressed(int) Signal emit when presses the handle

  • dragged(int) Signal emit when drags the handle

  • released(int) Signal emit when releases the handle

Example

from PyQt5.QtWidgets import QWidget, QHBoxLayout, QApplication



from pyqt_media_slider.mediaSlider import MediaSlider





class MediaSliderExample(QWidget):



    def __init__(self):

        super().__init__()

        self.__initUi()



    def __initUi(self):

        self.__slider = MediaSlider()

        lay = QHBoxLayout()

        lay.addWidget(self.__slider)

        self.setLayout(lay)





if __name__ == "__main__":

    import sys



    app = QApplication(sys.argv)

    player = MediaSliderExample()

    player.show()

    app.exec_()

Result

https://user-images.githubusercontent.com/55078043/151730656-42ecb8e1-3987-415c-bc5f-8ae1d10bf2e6.mp4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqt-media-slider-0.0.13.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

pyqt_media_slider-0.0.13-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page