Static Public Member Functions | |
def | alternate_color |
def | clear_layout |
Definition at line 41 of file layout_util.py.
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.
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 77 of file layout_util.py.