Class to handle mmtables. This is largely a wrapper to the underlying
C library which stores all the state information.
|
__init__(self,
table_file='
' ,
table_handle=None,
manage=True)
Construct a Table class object either by reading a table file or
using a handle to an existing mmtable. |
|
|
|
_delete(self)
A function to delete this object. |
|
|
|
__repr__(self)
Return representation suitable for use as a Python expression |
|
|
|
__str__(self)
Return string representation |
|
|
|
__int__(self)
Return mmtable handle. |
|
|
|
__len__(self)
Return the number of rows in the table |
|
|
|
__getitem__(self,
item)
Returns Table Row (if item is an integer) or table property (if item
is a string) |
|
|
|
__setitem__(self,
item,
value)
This function sets a table-level property |
|
|
|
__iter__(self)
Return an iterator object |
|
|
|
cellClearData(self,
row,
column)
Clears any data in the given cell |
|
|
|
cellHasData(self,
row,
column)
Indicates whether or not the given cell has data |
|
|
|
columnGetDataName(self,
column)
Returns the data name for the given column |
|
|
|
|
|
columnGetName(self,
column)
Returns the user name for the given column |
|
|
|
|
|
columnGetProperty(self,
column,
prop)
Returns the value of the given property for the column |
|
|
|
columnGetVisible(self,
column)
Returns the visible property for the given column |
|
|
|
columnGetWidth(self,
column)
Returns the width in characters of the given column |
|
|
|
columnSetName(self,
column,
name)
Sets the user name for the given column |
|
|
|
|
|
columnSetProperty(self,
column,
prop,
value)
Sets the value of the given property for the column |
|
|
|
columnSetVisible(self,
column,
visible)
Sets the visible property for the given column |
|
|
|
columnSetWidth(self,
column,
width)
Sets the width in characters for the given column |
|
|
|
deleteAllRows(self)
Deletes all rows from the table |
|
|
|
deleteColumn(self,
column)
Delets the given column |
|
|
|
deleteRow(self,
row)
Deletes the given row |
|
|
|
getColumnIndex(self,
name)
Returns the column index for the given user or data name |
|
|
|
getColumnNames(self)
Return a list of the column data names in this table |
|
|
|
getColumnTotal(self)
Returns the number of columns in the table |
|
|
|
getFirstSelectedRow(self)
Returns the first selected row--throws an error if no rows are
selected. |
|
|
|
getOrAddColumn(self,
name,
visible)
Finds or adds the given column via data name. |
|
|
|
getSelectedRows(self)
Returns a bitset containing the selected rows |
|
|
|
getSelectedRowTotal(self)
Return the total number of selected rows |
|
|
|
getVisibleColumnTotal(self)
Returns the number of visible columns |
|
|
|
getVisibleColumnIndex(self,
column)
Converts an index from the visible columns into the full set of
columns |
|
|
|
getVisibleRowIndex(self,
row)
Converts an index from the visible rows into the full set of rows |
|
|
|
getVisibleRowTotal(self)
Returns the number of visible rows |
|
|
|
insertColumn(self,
column,
name)
Adds the given column before the specified column. |
|
|
|
|
|
isRowSelected(self,
row)
Returns True if the given row is selected, or False otherwise |
|
|
|
keys(self)
Returns the column data names |
|
|
|
|
|
moveColumn(self,
from_column,
to_column)
Moves the given column to the destination column |
|
|
|
moveRows(self,
from_rows,
to_row)
Moves the given rows to the destination row |
|
|
|
rowGetExpanded(self,
row)
Indicates whether or not the given row is expanded |
|
|
|
rowGetVisible(self,
row)
Returns the visible property for the given row |
|
|
|
rowSetExpanded(self,
row,
expanded)
Sets the expanded property for the given row. |
|
|
|
rowSetVisible(self,
row,
visible)
Sets the visible property for the given row. |
|
|
|
selectAddRows(self,
rows)
This function selects the given rows without deselecting any other
rows. |
|
|
|
selectRows(self,
rows)
This function selects only the given rows. |
|
|
|
sortRows(self,
column,
ascending)
Sorts the rows by the given column in either ascending or descending
order |
|
|
|
unselectRows(self,
rows)
This function unselects the given rows |
|
|
Inherited from mmobject.MmObject :
__del__
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|