X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d37f9642887a5602d7c0b59527f213c32dd501a..02a1dfbae942c883d8651e34dcfbc5153aabc56e:/wxPython/demo/DrawXXXList.py diff --git a/wxPython/demo/DrawXXXList.py b/wxPython/demo/DrawXXXList.py index 46afed8951..1783ef76e9 100644 --- a/wxPython/demo/DrawXXXList.py +++ b/wxPython/demo/DrawXXXList.py @@ -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 #----------------------------------------------------------------------