]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GridCustEditor.py
compilation fix (for !PCH)
[wxWidgets.git] / wxPython / demo / GridCustEditor.py
index 668dbdc4282470d20d9f2333ee601bb082568864..27bba1562d7e13bc467c9fd8c3e69408cbe0ebd0 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 
 from wxPython.wx import *
 from wxPython.grid import *
@@ -46,7 +45,8 @@ class MyCellEditor(wxPyGridCellEditor):
         PaintBackground and do something meaningful there.
         """
         self.log.write("MyCellEditor: SetSize %s\n" % rect)
-        self._tc.SetDimensions(rect.x, rect.y, rect.width+2, rect.height+2)
+        self._tc.SetDimensions(rect.x, rect.y, rect.width+2, rect.height+2,
+                               wxSIZE_ALLOW_MINUS_ONE)
 
 
     def Show(self, show, attr):
@@ -211,6 +211,7 @@ class GridEditorTest(wxGrid):
         self.SetColSize(1, 150)
         self.SetColSize(2, 150)
 
+
 #---------------------------------------------------------------------------
 
 class TestFrame(wxFrame):