Public Member Functions | Public Attributes | List of all members
rqt_dwb_plugin.table_widget.TableWidget Class Reference
Inheritance diagram for rqt_dwb_plugin.table_widget.TableWidget:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, headers, stretch_column=0)
 
def resizeEvent (self, event)
 
def setColor (self, x, y, color)
 
def setColumnColor (self, column, color)
 
def setColumnHeader (self, column, value)
 
def setRowColor (self, row, color)
 
def setValue (self, x, y, value)
 

Public Attributes

 table
 

Detailed Description

Workaround for apparent bug in embedding QTableWidget.

For unknown reasons, embedding a QTableWidget in a Widget directly results in the Table being
displayed in the wrong spot. To avoid that, this Widget embeds it within a widget within the widget.
It's widgets all the way down. This class also provides a few helper functions for quickly setting
table properties.

Definition at line 39 of file table_widget.py.

Constructor & Destructor Documentation

◆ __init__()

def rqt_dwb_plugin.table_widget.TableWidget.__init__ (   self,
  headers,
  stretch_column = 0 
)

Reimplemented in rqt_dwb_plugin.sorted_twists_widget.SortedTwistsWidget.

Definition at line 48 of file table_widget.py.

Member Function Documentation

◆ resizeEvent()

def rqt_dwb_plugin.table_widget.TableWidget.resizeEvent (   self,
  event 
)

Definition at line 59 of file table_widget.py.

◆ setColor()

def rqt_dwb_plugin.table_widget.TableWidget.setColor (   self,
  x,
  y,
  color 
)

Definition at line 68 of file table_widget.py.

◆ setColumnColor()

def rqt_dwb_plugin.table_widget.TableWidget.setColumnColor (   self,
  column,
  color 
)

Definition at line 80 of file table_widget.py.

◆ setColumnHeader()

def rqt_dwb_plugin.table_widget.TableWidget.setColumnHeader (   self,
  column,
  value 
)

Definition at line 65 of file table_widget.py.

◆ setRowColor()

def rqt_dwb_plugin.table_widget.TableWidget.setRowColor (   self,
  row,
  color 
)

Definition at line 76 of file table_widget.py.

◆ setValue()

def rqt_dwb_plugin.table_widget.TableWidget.setValue (   self,
  x,
  y,
  value 
)

Definition at line 62 of file table_widget.py.

Member Data Documentation

◆ table

rqt_dwb_plugin.table_widget.TableWidget.table

Definition at line 50 of file table_widget.py.


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


rqt_dwb_plugin
Author(s):
autogenerated on Sun May 18 2025 02:47:58