]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxScrolledPanel.py
corrected Unicode conversion when replacing shared library extension with ".rsrc"
[wxWidgets.git] / wxPython / demo / wxScrolledPanel.py
index 079f878dc64aba8e14138d93f95146aef7401325..a0e89ae4214a946abeaad6cc9a630b6da4701cbd 100644 (file)
@@ -15,13 +15,15 @@ class TestPanel(wxScrolledPanel):
         desc = wxStaticText(self, -1,
                             "wxScrolledPanel extends wxScrolledWindow, adding all "
                             "the necessary bits to set up scroll handling for you.\n\n"
-                            "Here are three fixed size examples of its use, and the "
-                            "mail demo panel is also using it."
+                            "Here are three fixed size examples of its use. The "
+                            "demo panel for this sample is also using it -- the \nwxStaticLine"
+                            "below is intentionally made too long so a scrollbar will be "
+                            "activated."
                             )
         desc.SetForegroundColour("Blue")
         vbox.Add(desc, 0, wxALIGN_LEFT|wxALL, 5)
-        vbox.Add(wxStaticLine(self, -1), 0, wxEXPAND|wxALL, 5)
-        vbox.AddSpacer(20,20)
+        vbox.Add(wxStaticLine(self, -1, size=(1024,-1)), 0, wxALL, 5)
+        vbox.Add((20,20))
 
         words = text.split()
 
@@ -69,16 +71,16 @@ class TestPanel(wxScrolledPanel):
         panel3.SetupScrolling()
 
         hbox = wxBoxSizer(wxHORIZONTAL)
-        hbox.AddSpacer(20,20)
+        hbox.Add((20,20))
         hbox.Add(panel1, 0)
-        hbox.AddSpacer(40, 10)
+        hbox.Add((40, 10))
 
         vbox2 = wxBoxSizer(wxVERTICAL)
         vbox2.Add(panel2, 0)
-        vbox2.AddSpacer(20, 50)
+        vbox2.Add((20, 50))
 
         vbox2.Add(panel3, 0)
-        vbox2.AddSpacer(20, 10)
+        vbox2.Add((20, 10))
         hbox.Add(vbox2)
 
         vbox.AddSizer(hbox, 0)
@@ -101,7 +103,7 @@ def runTest(frame, nb, log):
 overview = """<html><body>
 wxScrolledPanel fills a "hole" in the implementation of wxScrolledWindow,
 providing automatic scrollbar and scrolling behavior and the tab traversal
-mangement that wxScrolledWindow lacks.
+management that wxScrolledWindow lacks.
 </body></html>
 """