self.SetCellEditor(0, 4, editor)
self.SetCellValue(0, 4, "Limited text")
+ renderer = gridlib.GridCellAutoWrapStringRenderer()
+ self.SetCellRenderer(15,0, renderer)
+ self.SetCellValue(15,0, "The text in this cell will be rendered with word-wrapping")
+
# test all the events
self.Bind(gridlib.EVT_GRID_CELL_LEFT_CLICK, self.OnCellLeftClick)
self.Bind(gridlib.EVT_GRID_CELL_RIGHT_CLICK, self.OnCellRightClick)
if __name__ == '__main__':
import sys
- app = wx.PySimpleApp()
+ from wx.lib.mixins.inspection import InspectableApp
+ app = InspectableApp(False)
frame = TestFrame(None, sys.stdout)
frame.Show(True)
#import wx.py