Skip to main content

PyQtLineEditProgressBar

A custom PyQt widget that creates a configurable progress bar as the background color of a QLineEdit widget.

Introduction

This widget sub-classes the QLineEdit widget to add a progress bar as its background color.

Read the User Manual.

Dependencies

PyQtLineEditProgressBar depends on the following third-party packages:

Installation

Via Python's package installer:

pip install pyqtlineeditprogressbar

Testing

Once installed the demo.py module can be executed to demonstrate usage:

from pyqtlineeditprogressbar import demo
demo.main()

The results of executing this file should look similar to the animation below.


License

PyQtLineEditProgressBar is GPLv3 licensed. See LICENSE file for details.

Attributions

This code is based off of a discussion at StackOverflow.

Usage

Inspect the demo.py code for examples of how to use ** PyQtLineEditProgressBar** and read the user manual documentation.

Caveat

This package uses Qt Palettes and LinearGradients to implement the progressbar in the background color of the LineEdit widget.

If you spend anytime whatsoever reading the Qt documentation on Palettes, it clearly states multiple times that the use of Palettes and Qt Style Sheets should not be mixed.

So its highly likely that if this package is used as part of an application that changes color themes via Qt Style Sheets there might be compatibility issues.

I would like to understand and solve this issue in the future, if possible. But at the moment it is not clear to me how to implement something like this only using Qt's style sheets.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqtlineeditprogressbar-0.3.5.tar.gz (11.5 MB view details)

Uploaded Source

File details

Details for the file pyqtlineeditprogressbar-0.3.5.tar.gz.

File metadata

  • Download URL: pyqtlineeditprogressbar-0.3.5.tar.gz
  • Upload date:
  • Size: 11.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.1

File hashes

Hashes for pyqtlineeditprogressbar-0.3.5.tar.gz
Algorithm Hash digest
SHA256 64ff9f5a1edfd5e1b75c1f93c25e9c33ff8888c6c0b9c2922d052602bc10bea5
MD5 c0fe1ede6622e03d623ebddb6630a850
BLAKE2b-256 9caac8624aaab7763b413d049594c4d38520e37a0fff946c0ffe63cab8a532cb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.5 This release

1 file

0.3.4

1 file

0.3.2

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page