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
self.SetColLabelAlignment(wx.ALIGN_LEFT, wx.ALIGN_BOTTOM)
#self.SetDefaultCellOverflow(False)
- #r = wxGridCellAutoWrapStringRenderer()
+ #r = gridlib.GridCellAutoWrapStringRenderer()
#self.SetCellRenderer(9, 1, r)
# overflow cells
class TestFrame(wx.Frame):
def __init__(self, parent, log):
wx.Frame.__init__(self, parent, -1, "Simple Grid Demo", size=(640,480))
- grid = SimpleGrid(self, log)
+ self.grid = SimpleGrid(self, log)
app = wx.PySimpleApp()
frame = TestFrame(None, sys.stdout)
frame.Show(True)
+ #import wx.py
+ #shell = wx.py.shell.ShellFrame(frame, locals={'wx':wx, 'frame':frame})
+ #shell.Show()
app.MainLoop()