X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..a92b0cfd2bd0bef75b43c071df0b0e028f360d8e:/wxPython/demo/GridStdEdRend.py diff --git a/wxPython/demo/GridStdEdRend.py b/wxPython/demo/GridStdEdRend.py index 5835a8227e..b4a3db3c36 100644 --- a/wxPython/demo/GridStdEdRend.py +++ b/wxPython/demo/GridStdEdRend.py @@ -142,11 +142,11 @@ Renderers used together. attr.SetReadOnly(true) attr.SetAlignment(wxRIGHT, -1) self.SetColAttr(renCol, attr) + attr.IncRef() self.SetColAttr(edCol, attr) # There is a bug in wxGTK for this method... - if wxPlatform != '__WXGTK__': - self.AutoSizeColumns(true) + self.AutoSizeColumns(true) self.AutoSizeRows(true) EVT_GRID_CELL_LEFT_DCLICK(self, self.OnLeftDClick)