title: Making the horizontal scrollbar of a scrolled panel to be permanently visible in wxPython
body: <p>I am developing a GUI with wxPython v3.0 on windows 8 OS. I have a problem regarding the horizontal scroll bar on a particular scrolled panel. In my GUI there are 2 scrolled panels named as <code>panel1</code> and <code>panel2</code> added to one main scrolled panel named as <code>mainPanel</code> and this panel has a vertical scroll bar. When ever the vertical scroll bar of the <code>mainPanel</code> is moved all the panels (panel1 &amp; panel2) move simultaneously, this is exactly what I desired. Also in <code>panel1</code> there is a horizontal scroll bar only (The vertical scroll bar is disabled on <code>panel1</code> using <code>SetupScrolling(scroll_y=False)</code>). The reason why I need a horizontal scroll bar on <code>panel1</code> is because if the text inside increases the panel expands too so I gave it a scroll bar.</p>
  
  <p><strong>Problem:</strong></p>
  
  <p>This horizontal bar on <code>panel1</code> is only visible when I scroll the vertical scroll bar (the scroll bar on extreme right side as shown in the image.) of the <code>mainPanel</code> to the bottom.
  <img src="https://i.stack.imgur.com/LBNXM.jpg" alt="Image"></p>
  
  <p>How can I make the horizontal scroll bar on <code>panel1</code> to be visible every time? I don't want to first scroll the vertical scroll bar of the mainPanel to the bottom in order to access the horizontal scroll bar of panel1?</p>
  
  <p><strong>Code:</strong> 
  Here is an example code for this problem. You can also download the python file from <a href="https://db.tt/fI53tevm" rel="nofollow noreferrer">this link</a> if you have any problems with identations.</p>
  
  <pre><code>  #!/usr/bin/env python
  
    import wx
    import wx.lib.scrolledpanel
  
  
    class GUI(wx.Frame):
  
      def __init__(self, parent, id, title):
      screenWidth = 800
      screenHeight = 450
      screenSize = (screenWidth, screenHeight)
      wx.Frame.__init__(self, None, id, title, size=screenSize)
      locationFont = wx.Font(15, wx.MODERN, wx.NORMAL, wx.BOLD)
      mainSizer = wx.BoxSizer(wx.VERTICAL)
      panelsSizer = wx.BoxSizer(wx.HORIZONTAL)
      sizer1 = wx.BoxSizer(wx.VERTICAL)
      sizer2 = wx.BoxSizer(wx.VERTICAL)
      mainPanel = wx.lib.scrolledpanel.ScrolledPanel(self, -1,style=wx.SIMPLE_BORDER)
      mainPanel.SetupScrolling()
      panel1 = wx.lib.scrolledpanel.ScrolledPanel(mainPanel, -1, style=wx.SIMPLE_BORDER)
      panel1.SetupScrolling(scroll_y=False)
      panel2 = wx.lib.scrolledpanel.ScrolledPanel(mainPanel, -1, style=wx.SIMPLE_BORDER)
      panel1.SetBackgroundColour('#FFFFFF')
      panel2.SetBackgroundColour('#FFFFFF')
      panelsSizer.Add(panel1, 1, wx.EXPAND)
      panelsSizer.Add(panel2, 2, wx.EXPAND)
      mainPanel.SetSizer(panelsSizer)
  
      k = 0
      locations = [1,2,3,4,5,6,7,8,9,10,110,110,1,2,3,4,5,6,7,8,9,10]
      for i in range(1,20):
          locationPanels = 'locationPanel'+str(k)
          locationPanels = wx.Panel(panel1)
          label0 = str(k+1)+ '. '+'Panel-1   #############################'
          text0 = wx.StaticText(locationPanels, -1, label0)
          text0.SetFont(locationFont)
          text0.SetForegroundColour('#0101DF')
          sizer1.Add(locationPanels, 0, wx.ALL, 5)
          sizer1.Add(wx.StaticLine(panel1), 0, wx.ALL|wx.EXPAND, 0)
          k += 1
  
      k = 0
      availability=[1,2,3,4,5,6,5,4,3,2,1,2,3,110,1,2,3,4,5,6,7,8,9,10]
      for i in range(1,20):
          sensorPanel ='sensorPanel' +str(k)
          sensorPanel = wx.Panel(panel2)
          label = str(k)+ '. Panel-2'
          text = wx.StaticText(sensorPanel, -1, label)
          text.SetForegroundColour('#0101DF')
          text.SetFont(locationFont)
          sizer2.Add(sensorPanel, 0, wx.ALL, 5)
          sizer2.Add(wx.StaticLine(panel2), 0, wx.ALL|wx.EXPAND, 0)
          k += 1
  
      panel1.SetSizer(sizer1)
      panel2.SetSizer(sizer2)
      mainSizer.Add(mainPanel, 15, wx.EXPAND|wx.ALL)
      self.SetSizer(mainSizer)
  
  
  if __name__=='__main__':
  app = wx.App()
  frame = GUI(parent=None, id=-1, title="Test")
  frame.Show()
  app.MainLoop()
  </code></pre>
  
  <p>Thank you for your time.</p>