]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/DrawXXXList.py
typo fixed: should be lpthread, not -lpthread in THREAD_OPTS
[wxWidgets.git] / wxPython / demo / DrawXXXList.py
index 46afed8951885d532d95822ae78cad233975fd44..1783ef76e9a87802fe39b4ebe96e152afca09c66 100644 (file)
@@ -108,7 +108,11 @@ def runTest(frame, nb, log):
     h = nb.GetClientSize().height
     if w < 300: w = 300
     if h < 300: h = 300
-    win = TestPanel(nb, wxSize(w, h), log)
+    win = wxPanel(nb, -1)
+    tp = TestPanel(win, wxSize(w, h), log)
+    def OnPanelSize(evt, tp=tp):
+        tp.SetSize(evt.GetSize())
+    EVT_SIZE(win, OnPanelSize)
     return win
 
 #----------------------------------------------------------------------