]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GridSimple.py
Stop the timer when the sample is destroyed
[wxWidgets.git] / wxPython / demo / GridSimple.py
index 9a0d25bde2c16ef0704e513a38b236019160a5a0..9c9b4ce425d91d00c3ea0367b6ffdba7c5d80193 100644 (file)
@@ -57,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
@@ -230,7 +230,7 @@ class SimpleGrid(gridlib.Grid): ##, mixins.GridAutoEditMixin):
 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)
 
 
 
@@ -241,6 +241,9 @@ if __name__ == '__main__':
     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()