diff --git a/README.md b/README.md index c61d78f..eaa7dff 100644 --- a/README.md +++ b/README.md @@ -12,23 +12,19 @@ The goal of this package is to provide a QRangeSlider that feels as "native" as possible. Styles should match the OS by default, and the slider should behave like a standard QSlider... just with multiple handles. +- Supports more than 2 handles (e.g. `slider.setValue([0, 10, 60, 80])`) - Attempts to match QSlider API as closely as possible -- Uses platform-specific Qt styles -- Supports style sheets +- Uses platform-specific styles (for handle, groove, & ticks) but also supports QSS style sheets. - Supports mouse wheel and keypress (soon) events - Supports PyQt5, PyQt6, PySide2 and PySide6 ## Installation -You can install `PyQRangeSlider` via [pip]: +You can install `PyQRangeSlider` via pip: pip install pyqrangeslider -## License - -Distributed under the terms of the [BSD-3] license, -"PyQRangeSlider" is free and open source software ## Issues diff --git a/examples/basic.py b/examples/basic.py index 21ed7f0..5a0da72 100644 --- a/examples/basic.py +++ b/examples/basic.py @@ -1,8 +1,6 @@ from pyqrangeslider import QRangeSlider -from pyqrangeslider.qtcompat import API_NAME from pyqrangeslider.qtcompat.QtWidgets import QApplication -print(API_NAME) app = QApplication([]) slider = QRangeSlider() diff --git a/examples/multihandle.py b/examples/multihandle.py new file mode 100644 index 0000000..1d85f1e --- /dev/null +++ b/examples/multihandle.py @@ -0,0 +1,12 @@ +from pyqrangeslider import QRangeSlider +from pyqrangeslider.qtcompat.QtWidgets import QApplication + +app = QApplication([]) + +slider = QRangeSlider() +slider.setMinimum(0) +slider.setMaximum(200) +slider.setValue((0, 40, 80, 160)) +slider.show() + +app.exec_()