pyqtribbon.toolbutton module

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

Bases: QToolButton

Tool button that is showed in the ribbon.

Create a new ribbon tool button.

Parameters:

parent – The parent widget.

addRibbonMenu() RibbonMenu[source]

Add a ribbon menu for the button.

Returns:

The added ribbon menu.

buttonStyle() RibbonButtonStyle[source]

Get the button style of the button.

Returns:

The button style 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.

setMaximumIconSize(size: int)[source]

Set the maximum icon size of the button.

Parameters:

size – The maximum icon size of the button.