title: How to add multiple StaticBox(s) with child items within each StaticBox on a panel?
body: <p>With wxpython, I want to create multiple StaticBox(s) on a panel, add some widgets to each staticbox. How can I do that? A minimal example to start with:</p>
  
  <pre class="lang-py prettyprint-override"><code>import wx
  
  app = wx.App()
  frame = wx.Frame(None, size=(700, 500))
  panel = wx.Panel(frame)
  vbox = wx.BoxSizer(wx.VERTICAL)
  
  # Three StaticBox, with a StaticText within each
  for n in range(3):
      sizer = wx.StaticBoxSizer(wx.VERTICAL, wx.StaticBox(panel,label=f"Box {n}"))
      sizer.Add(wx.StaticText(panel, label=f"StaticText of box {n}"))
      vbox.Add(sizer, 1, wx.EXPAND | wx.ALL, 5)
  
  panel.SetSizer(vbox)
  frame.Show()
  app.MainLoop()
  </code></pre>
  
  <p>What's wrong with my code, because I got the following window:</p>
  
  <p><a href="https://i.stack.imgur.com/j0PyB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j0PyB.png" alt="enter image description here"></a></p>