Metadata-Version: 2.1
Name: pyqt-media-slider
Version: 0.0.12
Summary: PyQt media slider
Home-page: https://github.com/yjg30737/pyqt-media-slider.git
Author: Jung Gyu Yoon
Author-email: yjg30737@gmail.com
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENSE


# 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

* <a href="https://github.com/yjg30737/pyqt-resource-helper.git">pyqt-resource-helper</a>



## 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



```python

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















