X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96bfd05319f9e393843e84ca5274d85ff248bad4..f63e3ebbe3272b9690aa2530e0c3048d3f37c7c7:/wxPython/demo/GridCustEditor.py?ds=sidebyside diff --git a/wxPython/demo/GridCustEditor.py b/wxPython/demo/GridCustEditor.py index a24cbf5fa1..27bba1562d 100644 --- a/wxPython/demo/GridCustEditor.py +++ b/wxPython/demo/GridCustEditor.py @@ -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):