pyqt-foldable-toolbar

PyQt foldable/hidable toolbar

MIT License

Downloads
131
Stars
4
Committers
1

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

  • pyqt-svg-button

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