Skip to main content

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

https://user-images.githubusercontent.com/55078043/148164060-30f842f1-a64e-4553-abba-f37c7d0f8365.mp4

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

pyqt-label-slider-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

pyqt_label_slider-0.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for pyqt-label-slider-0.0.1.tar.gz
Algorithm Hash digest
SHA256 85b50123b48a169cd9a263da7e64b9f117f8445727f9e69cfe4734803a3ddf59
MD5 8d2ed4a0b6860bf144c1eb1efe05a167
BLAKE2b-256 e166efef0717ad87a1c4ab5414b73e85eab0e300718733d255c0cd90b675716c

See more details on using hashes here.

File details

Details for the file pyqt_label_slider-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyqt_label_slider-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3fd171ad8c0e33a3f824939b536556ed08e3f279c9bfe3bcf1867520573f202
MD5 e7d54dd5a0ffde061aacd197b7c5f6c7
BLAKE2b-256 2f50ede094859add05b7774e59f2c62673c1fe599beb119f23fac2352a905429

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page