Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacklam718/pyqt-progressdialog
Python QT Progress Dialog
https://github.com/jacklam718/pyqt-progressdialog
Last synced: 5 days ago
JSON representation
Python QT Progress Dialog
- Host: GitHub
- URL: https://github.com/jacklam718/pyqt-progressdialog
- Owner: jacklam718
- License: mit
- Created: 2015-04-27T05:53:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-19T16:10:25.000Z (over 9 years ago)
- Last Synced: 2024-04-14T22:49:06.306Z (7 months ago)
- Language: Python
- Homepage:
- Size: 180 KB
- Stars: 8
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#About
This is a PyQt Progress Bar you can easily to use this library or inherit it#Example
```python
from progressBar import DownloadProgressBar, UploadProgressBar, ProgressDialog# create a ProgressDialog instance
progressDialog = ProgressDialog()# create a DownloadProgressBar instance, you can pass an argument as the progress bar title
progressBar = DownloadProgressBar(text="Downloading")
# set max value
progressBar.setMax(100)
# set current value
progressBar.setValue(' ' * progress)
progressDialog.addProgressbar(progressbar)
# finally call show method
progressDialog.show()
```
> You can also directly execute the **progressBar.py** preview the effect#Install
```bash
git clone https://github.com/jacklam718/PyQt-ProgressDialog
cd PyQt-ProgressDialog
python or python3 setup.py install
```#Tips
You can easily change the progress bar style
```python
class DownloadProgressBar(BaseProgressBar):
def __init__(self, text='Downloading', parent=None):
super(self.__class__, self).__init__(text, parent)
style ="""
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
text-align: center;
}QProgressBar::chunk {
background-color: #37DA7E;
width: 20px;
}"""
self.progressbar.setStyleSheet(style)
```#Screenshots