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
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bca4570883cdaed1b2ca5377cc6329741a57726964808ead944a58c937cc3e8 |
|
MD5 | abf761694539e394d930d45447f35c16 |
|
BLAKE2b-256 | 69826ba38909097b61e26ad3ae35dd3e7fb12a971cd7ae42a749735dc555dbb5 |
File details
Details for the file pyqt_media_slider-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: pyqt_media_slider-0.0.13-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75ebc4deb2ecaf41182360429f9a3835013d55523d19fc06f4aead899b4ca7f2 |
|
MD5 | 3a3a3588f9c2367bd7e2c7b663d3c24a |
|
BLAKE2b-256 | a76c22513b97cc30a86f41d9fdcf4850c4cc9b494b5a566db527593a04645a80 |