Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjg30737/pyqt-loading-progressbar
PyQt animated progress bar used for loading
https://github.com/yjg30737/pyqt-loading-progressbar
pyqt pyqt-examples pyqt-tutorial pyqt5 qeasingcurve qprogressbar qpropertyanimation qt qt-examples qt5
Last synced: about 4 hours ago
JSON representation
PyQt animated progress bar used for loading
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-loading-progressbar
- Owner: yjg30737
- License: mit
- Created: 2022-06-01T06:36:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T08:46:26.000Z (7 months ago)
- Last Synced: 2024-12-23T14:14:14.666Z (11 days ago)
- Topics: pyqt, pyqt-examples, pyqt-tutorial, pyqt5, qeasingcurve, qprogressbar, qpropertyanimation, qt, qt-examples, qt5
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 12
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-loading-progressbar
PyQt animated progress bar used for loadingThere are two types of animation - dynamic, fade.
Animation is set to dynamic by default.
You can set it with `setAnimationType(type: str)`. You can give 'dynamic' or 'fade' to `type` argument.
## Requirements
* PyQt5 >= 5.8## Setup
`python -m pip install pyqt-loading-progressbar`## Example
### Code Sample
```python
from PyQt5.QtWidgets import QMainWindow, QApplication, QVBoxLayout, QLabel, QWidget
from pyqt_loading_progressbar.loadingProgressBar import LoadingProgressBarclass MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.__initUi()def __initUi(self):
bar = LoadingProgressBar()
# bar.setAnimationType('fade') - if you want to set animation type to fade
lay = QVBoxLayout()
lay.addWidget(QLabel('Loading...'))
lay.addWidget(bar)
mainWidget = QWidget()
mainWidget.setLayout(lay)
self.setCentralWidget(mainWidget)if __name__ == "__main__":
import sysapp = QApplication(sys.argv)
w = MainWindow()
w.show()
app.exec_()
```### Result
#### Dynamic
https://user-images.githubusercontent.com/55078043/171343160-88a38bbf-cc7a-4d83-b2b1-66d7291999ef.mp4
#### Fade
https://user-images.githubusercontent.com/55078043/171527713-ef74326d-a84f-499f-a79f-1efc17e4ab76.mp4