X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..423f194a1411e8aac372de29ef4a7ab5f90acb04:/wxPython/demo/wxScrolledPanel.py diff --git a/wxPython/demo/wxScrolledPanel.py b/wxPython/demo/wxScrolledPanel.py index 079f878dc6..c6b14bcca9 100644 --- a/wxPython/demo/wxScrolledPanel.py +++ b/wxPython/demo/wxScrolledPanel.py @@ -15,12 +15,14 @@ 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.Add(wxStaticLine(self, -1, size=(1024,-1)), 0, wxALL, 5) vbox.AddSpacer(20,20) words = text.split() @@ -101,7 +103,7 @@ def runTest(frame, nb, log): overview = """ 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. """