]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GridSimple.py
wxPython Merge #2 of 2.4 branch --> HEAD (branch tag: wxPy_2_4_merge_2)
[wxWidgets.git] / wxPython / demo / GridSimple.py
index 89c2ec6e076ffbe2524c697153bc27f65594e84e..267867c434151399fee30ff86aa84ad14af37064 100644 (file)
@@ -64,6 +64,11 @@ class SimpleGrid(wxGrid): ##, wxGridAutoEditMixin):
         self.SetCellValue(11, 1, "This cell is set to span 3 rows and 3 columns");
 
 
         self.SetCellValue(11, 1, "This cell is set to span 3 rows and 3 columns");
 
 
+        editor = wxGridCellTextEditor()
+        editor.SetParameters('10')
+        self.SetCellEditor(0, 4, editor)
+        self.SetCellValue(0, 4, "Limited text")
+
 
         # test all the events
         EVT_GRID_CELL_LEFT_CLICK(self, self.OnCellLeftClick)
 
         # test all the events
         EVT_GRID_CELL_LEFT_CLICK(self, self.OnCellLeftClick)