X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d37f9642887a5602d7c0b59527f213c32dd501a..761df41e86ceeed56d32c038a6c9f88554d4f47a:/wxPython/demo/DrawXXXList.py?ds=sidebyside 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 #----------------------------------------------------------------------