Skip to content

yjg30737/pyqt-modern-slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyqt-modern-slider

PyQt modern styled slider

Requirements

  • PyQt5 >= 5.8

Setup

python -m pip install pyqt-modern-slider

Example

from PyQt5.QtWidgets import QApplication, QVBoxLayout, QPushButton, QWidget
from pyqt_modern_slider import ModernSlider

if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    example = ModernSlider()
    btn = QPushButton('Play')
    lay = QVBoxLayout()
    lay.addWidget(example)
    lay.addWidget(btn)
    mainWidget = QWidget()
    mainWidget.setLayout(lay)
    mainWidget.show()
    app.exec_()

Preview

image

See Also