class documentation

class QLayouted:

Known subclasses: magneticalc.QtWidgets2.QDialog2.QDialog2, magneticalc.QtWidgets2.QGroupBox2.QGroupBox2

View In Hierarchy

QLayouted class.
Method __init__ Initializes the QLayouted class. This adds a layout and several related functions like addWidget() to the parent class.
Method addButtons Adds buttons.
Method addLayout Adds layout.
Method addSpacing Adds spacing.
Method addWidget Adds widget.
Method install_layout Installs this layout in the parent.
Instance Variable _layout Undocumented
def __init__(self, direction='vertical'):
Initializes the QLayouted class. This adds a layout and several related functions like addWidget() to the parent class.
Parameters
direction:strSets "vertical" or "horizontal" layout
def addButtons(self, data):
Adds buttons.
Parameters
data:Dict[str, Tuple[str, Callable]]Dictionary {text: (icon, callback), …}
Returns
Dict[int, QPushButton]Dictionary {index: QPushButton, …}
def addLayout(self, layout):
Adds layout.
Parameters
layout:QLayoutQLayout
def addSpacing(self, spacing):
Adds spacing.
Parameters
spacing:intSpacing value
def addWidget(self, widget, alignment=None):
Adds widget.
Parameters
widgetQWidget
alignment:Optional[Union[Qt.Alignment, Qt.AlignmentFlag]]Alignment
def install_layout(self, parent):
Installs this layout in the parent.
Parameters
parent:QWidgetUndocumented
_layout =

Undocumented