X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/591ab02f8c344e1de9bce7f5fb8f4fbe933bf3dc..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/demo/GridSimple.py diff --git a/wxPython/demo/GridSimple.py b/wxPython/demo/GridSimple.py index 9c9b4ce425..0748d09f7e 100644 --- a/wxPython/demo/GridSimple.py +++ b/wxPython/demo/GridSimple.py @@ -72,7 +72,11 @@ class SimpleGrid(gridlib.Grid): ##, mixins.GridAutoEditMixin): 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)