title: Padding in Panel and static text wrap in wxpython
body: <p>I would like to have a layout something like this</p>
  
  <p><a href="https://i.stack.imgur.com/NLjCQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NLjCQ.png" alt="enter image description here"></a></p>
  
  <p>There is a Main Panel just inside the frame with blank padding in the left and right which another Sub Panel located in the middle. A Static Text element located at the top of Sub Panel and it should wrap properly when changing the window size.</p>
  
  <p>My code snippet listed as following</p>
  
  <pre><code>import wx
  
  class MyPanel(wx.Panel):
      def __init__(self, parent):
          super(MyPanel, self).__init__(parent)
  
          self.hsizer = wx.BoxSizer()
          self.hsizer.AddStretchSpacer()
  
          self.panel = wx.Panel(self)
          self.panel.SetSize((350, -1))
  
          self.vsizer = wx.BoxSizer(wx.VERTICAL)
  
          label = (
              "This is a long scentence that I want it wrapped properly, "
              "but it doesn't seem to work at work. "
              "I prefer if you guys can give any sugeestions or help. "
              "For Long Long Long Long Long scentence."
          )
          style = wx.ALIGN_LEFT
          self.static_text = wx.StaticText(self, label=label, style=style)
          self.vsizer.Add(self.static_text, flag=wx.EXPAND | wx.ALL | wx.ALIGN_CENTER, border=5)
          self.static_text.Wrap(self.panel.Size[0])
          self.static_text.SetAutoLayout(True)
  
          self.panel.SetSizer(self.vsizer)
          self.hsizer.Add(self.panel, flag=wx.ALIGN_CENTER)
          self.hsizer.AddStretchSpacer()
          self.SetSizer(self.hsizer)
          self.Layout()
          print self.Size
          print self.panel.Size
  
  if __name__ == '__main__':
      app = wx.App()
      frame = wx.Frame(None)
      sizer = wx.BoxSizer()
      sizer.Add(MyPanel(frame), flag=wx.EXPAND)
      frame.SetSizer(sizer)
      frame.Show()
      app.MainLoop()
  </code></pre>
  
  <p>Currently, not only the Sub Panel is not located in the middle, but also the text in static text doesn't wrap properly when changing the window size. Any suggestions to make it work?</p>