X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..42f8298f6f42d5d63bb3caf65682b7d9d9f8b702:/wxPython/demo/GridSimple.py?ds=sidebyside diff --git a/wxPython/demo/GridSimple.py b/wxPython/demo/GridSimple.py index fca404d151..e289ee0f55 100644 --- a/wxPython/demo/GridSimple.py +++ b/wxPython/demo/GridSimple.py @@ -1,14 +1,3 @@ -# 11/6/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for V2.5 -# o The mixin features were all commented out. Is it broke? Should it even -# be in the source? Or is it left as an exercise to the reader? -# -# 11/25/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Robin confirms, this is tutorial code. But be warned! It has not been -# converted OR tested! -# import wx import wx.grid as gridlib @@ -25,7 +14,7 @@ class SimpleGrid(gridlib.Grid): ##, mixins.GridAutoEditMixin): self.Bind(wx.EVT_IDLE, self.OnIdle) - self.CreateGrid(25, 25) #, wxGrid.wxGridSelectRows) + self.CreateGrid(25, 25)#, gridlib.Grid.SelectRows) ##self.EnableEditing(False) # simple cell formatting @@ -68,7 +57,7 @@ class SimpleGrid(gridlib.Grid): ##, mixins.GridAutoEditMixin): self.SetColLabelAlignment(wx.ALIGN_LEFT, wx.ALIGN_BOTTOM) #self.SetDefaultCellOverflow(False) - #r = wxGridCellAutoWrapStringRenderer() + #r = gridlib.GridCellAutoWrapStringRenderer() #self.SetCellRenderer(9, 1, r) # overflow cells