So I already have a nice wx.Frame built. It is totally functional. I wish to make it a scrollable area. I have looked on the wx python API and it said that the following code should do it:
self.panel = wx.lib.scrolledpanel.ScrolledPanel(parent = self, id = -1)
self.panel.SetupScrolling()
self.panel = wx.Panel(self, -1)
self.panel.SetBackgroundColour(wx.Colour(self.Red, self.Blue, self.Green))
self.box = wx.FlexGridSizer(fileList.__len__(), 5, 5,5)
self.FileObjects = []
self.BatchProblemFileObjects = []
This creates scroll bars, but only AFTER I resize the window and only if there is a need for it. Is there anyway to make it so that I do not have to resize the window to make the scroll bars appear?
Thanks for your help.
(Running on python 2.7)