]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ScrolledPanel.py
Corrected _setCallbackInfo code so GiveFeedback can work
[wxWidgets.git] / wxPython / demo / ScrolledPanel.py
index cab8cc8eb2491d3100d646c2c202a24c3d0627a2..a22c3dc9f2c6997904fd5a01849d34a82e3ac906 100644 (file)
@@ -84,7 +84,7 @@ class TestPanel(scrolled.ScrolledPanel):
         vbox2.Add((20, 10))
         hbox.Add(vbox2)
 
         vbox2.Add((20, 10))
         hbox.Add(vbox2)
 
-        vbox.AddSizer(hbox, 0)
+        vbox.Add(hbox, 0)
         self.SetSizer(vbox)
         self.SetAutoLayout(1)
         self.SetupScrolling()
         self.SetSizer(vbox)
         self.SetAutoLayout(1)
         self.SetupScrolling()
@@ -112,4 +112,4 @@ mangement that wx.ScrolledWindow lacks.
 if __name__ == '__main__':
     import sys,os
     import run
 if __name__ == '__main__':
     import sys,os
     import run
-    run.main(['', os.path.basename(sys.argv[0])])
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])