X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3f175108be4a2c7db64e31b7d36189e036b5597..06b781c7c630ff8c2ab30211cb4351b4cb5bfb47:/wxPython/demo/GridCustEditor.py diff --git a/wxPython/demo/GridCustEditor.py b/wxPython/demo/GridCustEditor.py index 668dbdc428..8f9ed931e4 100644 --- a/wxPython/demo/GridCustEditor.py +++ b/wxPython/demo/GridCustEditor.py @@ -46,7 +46,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 +212,7 @@ class GridEditorTest(wxGrid): self.SetColSize(1, 150) self.SetColSize(2, 150) + #--------------------------------------------------------------------------- class TestFrame(wxFrame):