ScrolledPanel Behavior Difference in Windows and Linux

Hi folks,

Here is a small program that creates a frame, a notebook and some scrolled panels. Under Windows, as you shrink the frame, scroll bars appear as expected, but under Linux they do not. Any insights or suggestions to get the same behavior under Linux?

Thanks,
Dan

#! /usr/bin/env python

import wx
import wx.lib.scrolledpanel

class MyFrame(wx.Frame):

  def __init__(self):
    
    wx.Frame.__init__(self, None, title='My Frame', size=(1024,768))
    
    self.notebook = wx.Notebook(self, size=self.GetClientSize())
  
    for title in ['Tab 1', 'Tab 2', 'Tab 3']:
      page = wx.lib.scrolledpanel.ScrolledPanel(self.notebook)
      page.SetupScrolling(scroll_x=True, scroll_y=True, rate_x=20, rate_y=20)
      
      self.notebook.AddPage(page, title)
              
    self.Bind(wx.EVT_SIZE, self.OnSize)

  def OnSize(self, event):
    self.notebook.SetSize(self.GetClientSize())
    
if __name__ == '__main__':
  app = wx.PySimpleApp()
  frame = MyFrame()
  frame.Show()
  app.MainLoop()

···

--
Dr. Daniel B. Koch
Oak Ridge National Lab
http://www.ornl.gov/sci/gist/bios/bio_koch.html
(865) 241-9096