import wx
from wx.lib.scrolledpanel import ScrolledPanel

app = wx.PySimpleApp()
frame = wx.Frame(None, size = (125, 200))

scrolledPanel = ScrolledPanel(frame)
scrollSizer = wx.BoxSizer(wx.HORIZONTAL)
scrolledPanel.SetSizer(scrollSizer)
scrolledPanel.SetAutoLayout(True)
scrollSizer.Fit(scrolledPanel)
scrolledPanel.SetupScrolling()

buttonPanel = wx.Panel(scrolledPanel)
buttonSizer = wx.BoxSizer(wx.VERTICAL)
buttonPanel.SetSizer(buttonSizer)
for i in range(10):
    button = wx.Button(buttonPanel, -1, "ScrollPanel Test")
    buttonSizer.Add(button, 0, wx.RIGHT | wx.TOP | wx.ALIGN_CENTER, 10)

scrollSizer.Add(buttonPanel, flag = wx.ALL | wx.EXPAND)

frame.Show()
app.MainLoop()