pyqtribbon.separator module

class pyqtribbon.separator.RibbonHorizontalSeparator(width: int = 6, parent=None)[source]

Bases: RibbonSeparator

Horizontal separator.

Create a new horizontal separator.

Parameters:
  • width – The width of the separator.

  • parent – The parent widget.

class pyqtribbon.separator.RibbonSeparator(orientation=QtCore.Qt.Orientation.Vertical, width=6, parent=None)[source]
class pyqtribbon.separator.RibbonSeparator(parent=None)

Bases: QFrame

The RibbonSeparator is a separator that can be used to separate widgets in a ribbon.

Create a new separator.

Parameters:
  • orientation – The orientation of the separator.

  • width – The width of the separator.

  • parent – The parent widget.

paintEvent(event: QPaintEvent) None[source]

Paint the separator.

setTopBottomMargins(top: int, bottom: int) None[source]

Set the top and bottom margins.

sizeHint() QSize[source]

Return the size hint.

class pyqtribbon.separator.RibbonVerticalSeparator(width: int = 6, parent=None)[source]

Bases: RibbonSeparator

Vertical separator.

Create a new vertical separator.

Parameters:
  • width – The width of the separator.

  • parent – The parent widget.