mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Set transfer flag on wxPGWindowList constructor and SetSecondary method
Fixes #1696. wxPropertyGrid expects to delete both the primary and secondary controls, so we need to prevent Python from doing so.
This commit is contained in:
@@ -89,6 +89,13 @@ def run():
|
|||||||
if hasattr(item, 'type') and 'wxVariant' in item.type:
|
if hasattr(item, 'type') and 'wxVariant' in item.type:
|
||||||
item.type = item.type.replace('wxVariant', 'wxPGVariant')
|
item.type = item.type.replace('wxVariant', 'wxPGVariant')
|
||||||
|
|
||||||
|
# wxPGWindowList doesn't expect to own these, but wxPropertyGrid does,
|
||||||
|
# so flag them as transferred to the C++ side.
|
||||||
|
c = module.find('wxPGWindowList')
|
||||||
|
c.find('wxPGWindowList.primary').transfer = True
|
||||||
|
c.find('wxPGWindowList.secondary').transfer = True
|
||||||
|
c.find('SetSecondary.secondary').transfer = True
|
||||||
|
|
||||||
#-----------------------------------------------------------------
|
#-----------------------------------------------------------------
|
||||||
tools.doCommonTweaks(module)
|
tools.doCommonTweaks(module)
|
||||||
tools.runGenerators(module)
|
tools.runGenerators(module)
|
||||||
|
|||||||
Reference in New Issue
Block a user