X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96bfd05319f9e393843e84ca5274d85ff248bad4..abb69c6c82d61cf18f14270650a68896a3d8ed47:/wxPython/demo/wxMask.py?ds=sidebyside 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 #----------------------------------------------------------------------