Skip to main content

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

image

Fold

image

Here's another example with SettingsDialog in pyqt-timer.

Unfold

image

Fold

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqt-foldable-toolbar-0.0.11.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pyqt_foldable_toolbar-0.0.11-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page