]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GridStdEdRend.py
[start of] a wxUniversal implementation of wxToolBar
[wxWidgets.git] / wxPython / demo / GridStdEdRend.py
index 5835a8227e0dfe11e985a571b6c78b28bbc194e0..b4a3db3c36ea453fb7e01fdcdd1e95cc21bf590c 100644 (file)
@@ -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)