bSizer.Add(button1, 0, wx.ALL, 5)
bSizer.Add(button2, 0, wx.ALL, 5)
bSizer.Add(button3, 0, wx.ALL, 5)
bSizer.Add(button4, 0, wx.ALL, 5)
bSizer.Add(button5, 0, wx.ALL, 5)
bSizer.Add(button6, 0, wx.ALL, 5)
bSizer.Add(button7, 0, wx.ALL, 5)
bSizer.Add(button8, 0, wx.ALL, 5)
panel2.SetSizer(bSizer)
if __name__ == '__main__':
    app = wx.App()
frame = GUI(parent=None, id=-1, title='Test')
frame.Show()
app.MainLoop()
Creating a scrolling panel in wxPython