]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxMask.py
warning in Unicode compilation fixed
[wxWidgets.git] / wxPython / demo / wxMask.py
index c1fec35388ed0d80bcd7562f610d2a70e8d0967b..7c1f7ccfc612df0e3a3412a60e564640bfb0cef8 100644 (file)
@@ -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
 
 #----------------------------------------------------------------------