X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96bfd05319f9e393843e84ca5274d85ff248bad4..f4d0cce0b8dd38719e5cdad57ad6a1ff5ce41d82:/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 #----------------------------------------------------------------------