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 make it look 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
File details
Details for the file pyqt-foldable-toolbar-0.0.11.tar.gz
.
File metadata
- Download URL: pyqt-foldable-toolbar-0.0.11.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc0b6a8ab8749fa6dc8def6cbd87bee300be6c275e62568354fbbd0b897575fe |
|
MD5 | caec9b607c54761e9c6226805741a24f |
|
BLAKE2b-256 | 735be979fadf6b3ec52c15a033b9cb3ba87c143c9c1ab34bdadf64ff8a631f1b |
File details
Details for the file pyqt_foldable_toolbar-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: pyqt_foldable_toolbar-0.0.11-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a64e193361a9b1ca3ac72bd9883f290a7153119a27f7665c1a90789655d156d |
|
MD5 | 84e8674abb772689fca9d6aaa38d49d7 |
|
BLAKE2b-256 | f1d942b4310ee6bec7e69c9e6f21dc343f4a5416f50852c9ae39307a712c3feb |