Static Public Member Functions | List of all members
rqt_py_common.layout_util.LayoutUtil Class Reference
Inheritance diagram for rqt_py_common.layout_util.LayoutUtil:
Inheritance graph
[legend]

Static Public Member Functions

def alternate_color (list_widgets, colors_alter=[Qt.white, Qt.gray])
 
def clear_layout (layout)
 

Detailed Description

Definition at line 41 of file layout_util.py.

Member Function Documentation

◆ alternate_color()

def rqt_py_common.layout_util.LayoutUtil.alternate_color (   list_widgets,
  colors_alter = [Qt.white, Qt.gray] 
)
static
Alternate the background color of the widgets that are ordered
linearly, by the given list of colors.

Originally intended for the elements of QHBoxLayout & QVBoxLayout.

@type list_widgets: QtGui.QWidget[]
@type colors_alter: QtCore.Qt.GlobalColor[]
@param colors_alter: 1st element is used as initial/default color.
@rtype: void

@author: Isaac Saito

Definition at line 44 of file layout_util.py.

◆ clear_layout()

def rqt_py_common.layout_util.LayoutUtil.clear_layout (   layout)
static
Clear all items in the given layout. Currently, only the instances of
QWidgetItem get cleared (ie. QSpaceItem is ignored).

Originally taken from http://stackoverflow.com/a/9375273/577001

:type layout: QLayout

Definition at line 76 of file layout_util.py.


The documentation for this class was generated from the following file:


rqt_py_common
Author(s): Dorian Scholz , Isaac Saito, Dirk Thomas
autogenerated on Fri Jul 12 2024 02:31:13