Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjg30737/pyqt-ani-button
PyQt QPushButton for animation
https://github.com/yjg30737/pyqt-ani-button
pyqt pyqt-examples pyqt-gui pyqt5 pyqt5-gui qabstractanimation qpropertyanimation qpushbutton qt qt-examples qt5
Last synced: about 5 hours ago
JSON representation
PyQt QPushButton for animation
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-ani-button
- Owner: yjg30737
- License: mit
- Created: 2022-05-26T04:38:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-01T06:52:19.000Z (over 2 years ago)
- Last Synced: 2024-11-14T12:53:16.532Z (about 2 months ago)
- Topics: pyqt, pyqt-examples, pyqt-gui, pyqt5, pyqt5-gui, qabstractanimation, qpropertyanimation, qpushbutton, qt, qt-examples, qt5
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-ani-button
PyQt QPushButton for animation## Requirements
* PyQt5 >= 5.8## Setup
`python -m pip install pyqt-ani-button`## Included Package
* pyqt-ani-abstractbutton## Example
```python
from PyQt5.QtWidgets import QApplication, QWidget, QHBoxLayout
from pyqt_ani_button import AniButtonclass Widget(QWidget):
def __init__(self):
super().__init__()
self.__initUi()def __initUi(self):
lay = QHBoxLayout()
for i in range(5):
btn = AniButton()
btn.setFixedSize(30, 15)
lay.addWidget(btn)
self.setLayout(lay)if __name__ == "__main__":
import sysapp = QApplication(sys.argv)
ex = Widget()
ex.show()
sys.exit(app.exec_())
```Result
https://user-images.githubusercontent.com/55078043/171344503-f092e025-8329-447a-a02e-a7ca88b5c859.mp4
Perhaps this is not the animation you expected.
I'm working on button which is able to do color transition animation.