mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Merge pull request #1358 from wxWidgets/fix-issue1356
Actually insert the RecalcSizes method into the class
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user