Static Public Member Functions
rqt_py_common.layout_util.LayoutUtil Class Reference

List of all members.

Static Public Member Functions

def alternate_color
def clear_layout

Detailed Description

Definition at line 41 of file layout_util.py.


Member Function Documentation

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 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.


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


rqt_py_common
Author(s): Dorian Scholz, Isaac Saito
autogenerated on Mon Oct 6 2014 07:15:13