From 5589b01ba74638fcf94ee21f5581b050ee233156 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 21 Nov 2006 03:35:32 +0000 Subject: [PATCH] Show GridCellAutoWrapStringRenderer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/GridSimple.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.47.2