]> git.saurik.com Git - wxWidgets.git/commitdiff
some test code
authorRobin Dunn <robin@alldunn.com>
Sat, 22 Jul 2006 23:04:08 +0000 (23:04 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 22 Jul 2006 23:04:08 +0000 (23:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/GridSimple.py

index e289ee0f55028ac904272814a504b7412d92cd95..9c9b4ce425d91d00c3ea0367b6ffdba7c5d80193 100644 (file)
@@ -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()