From 3c9f134f1d0317ce0a6dfc6f6a1dd93d2af7ade3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 13 Sep 2019 12:34:47 -0700 Subject: [PATCH] Actually insert the RecalcSizes method into the class --- etg/sizer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etg/sizer.py b/etg/sizer.py index 66293a87..0fee7bdf 100644 --- a/etg/sizer.py +++ b/etg/sizer.py @@ -158,7 +158,7 @@ def run(): """) c.addPyMethod('__iter__', '(self)', - doc = "A Py convenience method that allows Sizers to act as iterables that will yield their wx.SizerItems.", + doc = "A Python convenience method that allows Sizers to act as iterables that will yield their wx.SizerItems.", body = "for item in self.GetChildren(): yield item") c.addPyCode('Sizer.__bool__ = Sizer.__nonzero__') # For Python 3 @@ -176,6 +176,8 @@ def run(): failure. """)], ) + c.insertItemAfter(c.find('RepositionChildren'), m) + #--------------------------------------------- c = module.find('wxBoxSizer')