Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 608 Bytes

tutorials.rst

File metadata and controls

26 lines (17 loc) · 608 Bytes

Tutorials

Using the RibbonBar

:py:class:`~ribbon.ribbonbar.RibbonBar` is a class that implements a ribbon bar, you can use it to create a ribbon bar.

.. literalinclude:: tutorial-ribbonbar.py
    :language: python

It would be rendered as follows:

_images/example.png

Using the RibbonMainWindow

Alternatively, you can use the :py:class:`~ribbon.mainwindow.RibbonMainWindow` which is a QMainWindow that has a ribbon bar.

.. literalinclude:: tutorial-mainwindow.py
    :language: python