LayoutWidget

class pyqtgraph.LayoutWidget(parent=None)[source]

Convenience class used for laying out QWidgets in a grid. (It’s just a little less effort to use than QGridLayout)

__init__(parent=None)[source]
addLabel(text=' ', row=None, col=None, rowspan=1, colspan=1, **kargs)[source]

Create a QLabel with text and place it in the next available cell (or in the cell specified) All extra keyword arguments are passed to QLabel(). Returns the created widget.

addLayout(row=None, col=None, rowspan=1, colspan=1, **kargs)[source]

Create an empty LayoutWidget and place it in the next available cell (or in the cell specified) All extra keyword arguments are passed to LayoutWidget.__init__ Returns the created widget.

addWidget(item, row=None, col=None, rowspan=1, colspan=1)[source]

Add a widget to the layout and place it in the next available cell (or in the cell specified).

getWidget(row, col)[source]

Return the widget in (row, col)

nextCol(*args, **kargs)[source]

Alias of nextColumn

nextColumn(colspan=1)[source]

Advance to next column, while returning the current column number (generally only for internal use–called by addWidget)

nextRow()[source]

Advance to next row for automatic widget placement