Skip to content

haiiliin/pyqtribbon

Repository files navigation

PyQtRibbon

Documentation Status Tests PyPI Coverage Status

PyPI license PyPI pyversions PyPI PyPI download month

Ribbon Bar for PyQt or PySide applications.

Installation

PyQtRibbon is distributed to PyPI, you can use pip to install it:

pip install pyqtribbon

You can also install the package from source:

pip install git+https://github.com/haiiliin/pyqtribbon.git@main

Compatible Python and PyQt/PySide Versions

Python PyQt5 PyQt6 PySide2 PySide6
3.7
3.8
3.9
3.10
3.11 1
3.12 1

The Ribbon Bar

The ribbon is first introduced by Microsoft in the 2000's. It is a toolbar with a tabbed interface. According to Microsoft:

  • A ribbon is a user interface (UI) element that organizes commands into logical groups. These groups appear on separate tabs in a strip across the top of the window. The ribbon replaces the menu bar and toolbars. A ribbon can significantly improve application usability. For more information, see Ribbons. The following illustration shows a ribbon. A ribbon can significantly improve application usability. For more information, see Ribbons. The following illustration shows a ribbon.

    ribbon_no_callouts

Definitions of Ribbon Elements

  • Application button: The button that appears in the upper-left corner of a ribbon. The Application button replaces the File menu and is visible even when the ribbon is minimized. When the button is clicked, a menu that has a list of commands is displayed.

  • Quick Access toolbar: A small, customizable toolbar that displays frequently used commands.

  • Category: The logical grouping that represents the contents of a ribbon tab.

  • Category Default button: The button that appears on the ribbon when the ribbon is minimized. When the button is clicked, the category reappears as a menu.

  • Panel: An area of the ribbon bar that displays a group of related controls. Every ribbon category contains one or more ribbon panels.

  • Ribbon elements: Controls in the panels, for example, buttons and combo boxes. To see the various controls that can be hosted on a ribbon, see RibbonGadgets Sample: Ribbon Gadgets Application.

Screenshots

An Example

Footnotes

  1. PySide2 does not support Python 3.11+ yet. 2