From 409e9860038421eaefbf4e383ddf1fde1a357069 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 29 Aug 2018 21:11:07 -0700 Subject: [PATCH] pad the layout a bit --- demo/StaticBox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/StaticBox.py b/demo/StaticBox.py index 12c74de3..f0385ceb 100644 --- a/demo/StaticBox.py +++ b/demo/StaticBox.py @@ -10,7 +10,8 @@ class TestPanel(wx.Panel): wx.Panel.__init__(self, parent, -1) box1 = wx.StaticBox(self, -1, "This is a wx.StaticBox") - bsizer1 = wx.BoxSizer() + bsizer1 = wx.BoxSizer(wx.VERTICAL) + bsizer1.AddSpacer(20) t1 = wx.StaticText(box1, -1, "As of wxPython 2.9, wx.StaticBox can now be used as a parent like most other wx widgets. This is now the recommended way of using wx.StaticBox.") bsizer1.Add(t1, 1, wx.EXPAND|wx.TOP|wx.LEFT|wx.RIGHT, 10)