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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pyqt-media-slider-0.0.13.tar.gz.

File metadata

  • Download URL: pyqt-media-slider-0.0.13.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 CPython/3.7.6

File hashes

Hashes for pyqt-media-slider-0.0.13.tar.gz
Algorithm Hash digest
SHA256 9bca4570883cdaed1b2ca5377cc6329741a57726964808ead944a58c937cc3e8
MD5 abf761694539e394d930d45447f35c16
BLAKE2b-256 69826ba38909097b61e26ad3ae35dd3e7fb12a971cd7ae42a749735dc555dbb5

See more details on using hashes here.

File details

Details for the file pyqt_media_slider-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for pyqt_media_slider-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 75ebc4deb2ecaf41182360429f9a3835013d55523d19fc06f4aead899b4ca7f2
MD5 3a3a3588f9c2367bd7e2c7b663d3c24a
BLAKE2b-256 a76c22513b97cc30a86f41d9fdcf4850c4cc9b494b5a566db527593a04645a80

See more details on using hashes here.

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