X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96bfd05319f9e393843e84ca5274d85ff248bad4..edb89f7e356761b4fbdaebb8b5ebd5c7a7643da7:/wxPython/demo/wxMask.py diff --git a/wxPython/demo/wxMask.py b/wxPython/demo/wxMask.py index c1fec35388..7c1f7ccfc6 100644 --- a/wxPython/demo/wxMask.py +++ b/wxPython/demo/wxMask.py @@ -91,12 +91,22 @@ class TestMaskWindow(wxScrolledWindow): i = i + 1 +# On wxGTK there needs to be a panel under wxScrolledWindows if they are +# going to be in a wxNotebook... +class TestPanel(wxPanel): + def __init__(self, parent, ID): + wxPanel.__init__(self, parent, ID) + self.win = TestMaskWindow(self) + EVT_SIZE(self, self.OnSize) + + def OnSize(self, evt): + self.win.SetSize(evt.GetSize()) #---------------------------------------------------------------------- def runTest(frame, nb, log): - win = TestMaskWindow(nb) + win = TestPanel(nb, -1) return win #----------------------------------------------------------------------