title: Static text vertical alignment with wxPython
body: <p>I'm designing a form with wxPython.
  Note the search panel in the picture: the "Search By: " label, the combo box nest to it and the search control - all have their text aligned to the top. How can I align them all to be in the middle (vertically)?</p>
  
  <p><a href="https://i.stack.imgur.com/UqJI6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UqJI6.png" alt="Text is not vertically aligned in Search Panel"></a></p>
  
  <p>This is the Search PAnel code:</p>
  
  <pre><code>class TopNavigationPanel(wx.Panel):
      def __init__(self, parentPanel):
          """Constructor"""
          wx.Panel.__init__(self, parent=parentPanel, id=-1)
          self.SetBackgroundColour("red")
  
  
          self.searchByLbl = wx.StaticText(self, label="Search By: ", style=wx.ALIGN_RIGHT, size=(80, -1))
  
          cat = ["Author", "Title", "ISBN", "Publisher"]
          categories = wx.ComboBox(self, value="Author", choices=cat, size=(100, -1))
  
          self.search = wx.SearchCtrl(self, style=wx.TE_PROCESS_ENTER, size=(160, -1))
          self.search.Bind(wx.EVT_TEXT_ENTER, parentPanel.onSearch)
  
          navigationSizer = wx.BoxSizer(wx.HORIZONTAL)
  
          navigationSizer.AddSpacer(50)
          navigationSizer.Add(self.searchByLbl, 0, wx.EXPAND, 0)
          navigationSizer.Add(categories, 0, wx.EXPAND, 0)
          navigationSizer.Add(self.search, 0, wx.EXPAND, 0)
          navigationSizer.AddSpacer(500)
  
          self.SetSizer(navigationSizer)
          self.Fit()
  </code></pre>