X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..9fd9e47a93dfcdd99c2722e288a0f28a51ce6f5f:/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)