Package mathbench :: Package ext :: Module columnsizer :: Class ColumnSizerMixin
[hide private]

Class ColumnSizerMixin

source code

object --+
         |
        ColumnSizerMixin
Known Subclasses:
pluginmanagement_widgets.PluginList

Enhancement to ListCtrl to handle column resizing.

Resizes columns to a fixed size or based on the size of the contents, but constrains the whole width to the visible area of the list. Theoretically there won't be any horizontal scrollbars, but this doesnt' yet work on GTK, at least.



Instance Methods [hide private]
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
OnSize(self, evt) source code
 
resizeColumnsIfDirty(self) source code
 
resizeColumns(self, flags=[]) source code
 
_resizeColumns(self, flags=[])
Resize each column according to the flag.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

_resizeColumns(self, flags=[])

source code 

Resize each column according to the flag.

For each column, the respective flag indicates the following:

0: smallest width that fits the entire string 1: smallest width, and keep this column fixed width if possible >1: maximum size <0: absolute value is the minimum size