retype.layouts.rowlayout

PyQt horizontal layout that simply lays out items from left to right based on their size, accounting for spacing and contents margins. Similar to the way items on a menu or toolbar are positioned.

Classes

RowLayout([parent])

class retype.layouts.rowlayout.RowLayout(parent=None)[source]

Bases: QLayout

addItem(item)[source]

Add an item to the end of this layout

count()[source]

Return number of items in this layout

doLayout(rect, dry_run=False)[source]

Lay out the items in `item_list’ within bounding QRect `rect’. If dry_run, only do the calculations and return the resulting width.

expandingDirections(self) Qt.Orientations[source]
itemAt(index)[source]

Return item at given index (non-destructively)

minimumSize(self) QSize[source]
setGeometry(self, a0: QRect)[source]
sizeHint(self) QSize[source]
takeAt(index)[source]

Remove and return item at given index