projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
escape _ in LaTeX sources
[wxWidgets.git]
/
wxPython
/
demo
/
GridSimple.py
diff --git
a/wxPython/demo/GridSimple.py
b/wxPython/demo/GridSimple.py
index 9c9b4ce425d91d00c3ea0367b6ffdba7c5d80193..0748d09f7e16b2929eb8ade1ac869032d51376e6 100644
(file)
--- 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")
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)
# test all the events
self.Bind(gridlib.EVT_GRID_CELL_LEFT_CLICK, self.OnCellLeftClick)
self.Bind(gridlib.EVT_GRID_CELL_RIGHT_CLICK, self.OnCellRightClick)