PyQt foldable toolbar
Project description
pyqt-foldable-toolbar
PyQt foldable/hidable toolbar. You can add widget with addWidget(widget)
. You can see how to use it in the example below.
There is fold/unfold animation to look it better.
Requirements
- PyQt5 >= 5.8
Setup
python -m pip install pyqt-foldable-toolbar
Included Packages
Example
Code Sample
from PyQt5.QtWidgets import QApplication, QMainWindow, QTextEdit
from pyqt_foldable_toolbar import FoldableToolBar
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
mainWindow = QMainWindow()
toolBar = FoldableToolBar()
toolBar.addWidget(QTextEdit())
mainWindow.addToolBar(toolBar)
mainWindow.show()
sys.exit(app.exec_())
Result
Unfold
Fold
Here's another example with SettingsDialog
in pyqt-timer.
Unfold
Fold
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pyqt-foldable-toolbar-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b933b0c6adc199af50a4979b25f0a365c6f8957f907ebb57fbfc298d4286266 |
|
MD5 | 8f7f36783c76b1eeb5b8858140c51d9e |
|
BLAKE2b-256 | 4c989835fd0787691e022f0dbf446ebf9eb80528cfe48ed5e66faa683ff39995 |
Close
Hashes for pyqt_foldable_toolbar-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dae4f8d384c4016ad49f97d3279f3185e73cbbf1cb34e6a4b3663a1762d020d |
|
MD5 | e8e7a0923d08999330ad3277cf6b4806 |
|
BLAKE2b-256 | 259af20a664db8519829d9b4eec34471c30e14d3e7625db4c02ff14322c7b864 |