Hi!
Is it possible to add a scrollbar in a MultiSplitterWindow?
E.g. according to the wxPython Demo for each Panel a Scrollbar?
I tried this but nothing happens:
self.scroll = wx.ScrolledWindow(self, -1)
self.scroll.SetScrollbars(1, 1, 600, 800)
Is self the SamplePane class? If so your problem is probably the fact that you are not doing anything to make the scrolled window fill the pane, so it is too small to see anything.
On the other hand, there is no reason you couldn't put the scrolled window directly in the splitter. In other words, in the demo you can make SamplePane derive from wx.ScrolledWindow instead of wx.Panel. For example:
class SamplePane(wx.ScrolledWindow):
"""
Just a simple test window to put into the splitter.
"""
def __init__(self, parent, colour, label):
wx.ScrolledWindow.__init__(self, parent, style=wx.BORDER_SUNKEN)
self.SetBackgroundColour(colour)
wx.StaticText(self, -1, label, (5,5))