From 94eb2b65f72faa495952339c70cd475030357819 Mon Sep 17 00:00:00 2001 From: Werner F Bruhin Date: Tue, 17 Jun 2014 14:04:03 +0200 Subject: [PATCH] - sphinx didn't like the text formatting --- wx/lib/scrolledpanel.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/wx/lib/scrolledpanel.py b/wx/lib/scrolledpanel.py index 96635a8a..b5447b49 100644 --- a/wx/lib/scrolledpanel.py +++ b/wx/lib/scrolledpanel.py @@ -41,6 +41,16 @@ Usage Usage example:: + + text = ''' + ScrolledPanel extends wx.ScrolledWindow, adding all + the necessary bits to set up scroll handling for you. + + Here are three fixed size examples of its use. The + demo panel for this sample is also using it -- the + wx.StaticLine below is intentionally made too long so a scrollbar will be + activated.''' + import wx import wx.lib.scrolledpanel as scrolled @@ -52,13 +62,6 @@ Usage example:: vbox = wx.BoxSizer(wx.VERTICAL) - text = "ScrolledPanel extends wx.ScrolledWindow, adding all\n" - text += "the necessary bits to set up scroll handling for you.\n\n" - - text += "Here are three fixed size examples of its use. The\n" - text += "demo panel for this sample is also using it -- the\n" - text += "wx.StaticLine below is intentionally made too long so a scrollbar will be\n" - text += "activated." desc = wx.StaticText(self, -1, text)