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.
- PyQt5 >= 5.8
python -m pip install pyqt-foldable-toolbar
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_())
Unfold
Fold
Here's another example with SettingsDialog
in pyqt-timer.
Unfold
Fold