Search code examples
dataviewwxpython

wxpython DataViewIndexListModel Text Wrap


Is it possible to wrap the text in the cells of the wxpython dataviewctrl? I have some long strings which are making the grid cells very large.


Solution

  • OK I was able to get the cells to wrap by using textwrap in a function called from GetValueByRow(). It seems to work; but, does gives a somewhat strange string of text when editing the cell.