PyQt QSlider with QLabel(QLabel is on the left side, QSlider is on the right side, horizontal direction only) QLabel's value synchronizes with QSlider's value.
Project description
pyqt-label-slider
PyQt QSlider with QLabel(QLabel is on the left side, QSlider is on the right side, horizontal direction only) QLabel's value synchronizes with QSlider's value.
Requirements
PyQt5 >= 5.8
Setup
python pip -m install pyqt-label-slider
Usage
-
getSlider()to get QSlider. -
getLabel()to get QLabel.
Note
- Tick interval is set at 10.
Example
Code Sample
from PyQt5.QtWidgets import QApplication, QMainWindow
from pyqt_label_slider.labelSlider import LabelSlider
class Example(QMainWindow):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
widget = LabelSlider()
slider = widget.getSlider()
slider.setMaximumWidth(150)
slider.setRange(10, 200)
self.setCentralWidget(widget)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
ex = Example()
ex.show()
sys.exit(app.exec_())
Result
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyqt-label-slider-0.0.1.tar.gz.
File metadata
- Download URL: pyqt-label-slider-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85b50123b48a169cd9a263da7e64b9f117f8445727f9e69cfe4734803a3ddf59
|
|
| MD5 |
8d2ed4a0b6860bf144c1eb1efe05a167
|
|
| BLAKE2b-256 |
e166efef0717ad87a1c4ab5414b73e85eab0e300718733d255c0cd90b675716c
|
File details
Details for the file pyqt_label_slider-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pyqt_label_slider-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 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 |
d3fd171ad8c0e33a3f824939b536556ed08e3f279c9bfe3bcf1867520573f202
|
|
| MD5 |
e7d54dd5a0ffde061aacd197b7c5f6c7
|
|
| BLAKE2b-256 |
2f50ede094859add05b7774e59f2c62673c1fe599beb119f23fac2352a905429
|