pyqtribbon.toolbutton

Module Contents

Classes

RibbonButtonStyle

Button style, Small, Medium, or Large.

RibbonToolButton

Tool button that is showed in the ribbon.

class pyqtribbon.toolbutton.RibbonButtonStyle[source]

Bases: enum.Enum

Button style, Small, Medium, or Large.

class pyqtribbon.toolbutton.RibbonToolButton(parent=None)[source]

Bases: qtpy.QtWidgets.QToolButton

Tool button that is showed in the ribbon.

setMaximumIconSize(size: int)[source]

Set the maximum icon size of the button.

Parameters:

size – The maximum icon size of the button.

maximumIconSize() int[source]

Get the maximum icon size of the button.

Returns:

The maximum icon size of the button.

setButtonStyle(style: RibbonButtonStyle)[source]

Set the button style of the button.

Parameters:

style – The button style of the button.

buttonStyle() RibbonButtonStyle[source]

Get the button style of the button.

Returns:

The button style of the button.

addRibbonMenu() pyqtribbon.menu.RibbonMenu[source]

Add a ribbon menu for the button.

Returns:

The added ribbon menu.