Package schrodinger :: Package ui :: Module widgettable :: Class _Column
[hide private]
[frames] | no frames]

Class _Column

object --+
         |
        _Column
Known Subclasses:

Base class for a column

Instance Methods [hide private]
 
__init__(self, table, colid, columnwidth=None, columntitle=None, columnicon=None, sortfunc=None, resizable=True, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
 
colPos(self)
The x-coordinate position of the colomn in the table (1=leftmost)
 
_createCell(self, row)
Is overwritten in subclasses
 
createCell(self, row)
 
_setWidth(self, width)
Set the width of this column to specified value
 
resize(self, newwidth, dohidden=False)
If member 'resizable' is True, then do resizing.
 
_createTitle(self)
self = column
 
addCellForEachRow(self)
 
remove(self)
Removes this column from the table
 
setSortFunc(self, function)
Supply a function that would be used to sort the cells in this column.
 
_getCellIterator(self)
 
_defaultSortFunc(self, cell1, cell2)
This function always returns that all elements are equal, not doing a search
 
_position(self)
 
getCell(self, row)
Given a row reference, return the cell of this column and that row.
 
disable(self)
Disable the column
 
enable(self)
Enable the column

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  cell

Inherited from object: __class__

Method Details [hide private]

__init__(self, table, colid, columnwidth=None, columntitle=None, columnicon=None, sortfunc=None, resizable=True, **kwargs)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

resize(self, newwidth, dohidden=False)

 

If member 'resizable' is True, then do resizing. Set the width of the column to <newwidth> and resize all unsized columns to fill the width of the table

If member 'resizable' is False, do nothing.

WHILE columns are resized gets called for visible cells only AFTER columns were resized gets called for hidden cells only

setSortFunc(self, function)

 

Supply a function that would be used to sort the cells in this column. The function should accept 2 arguments of type _Cell.


Property Details [hide private]

cell

Get Method:
_getCellIterator(self)