mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 19:40:12 +01:00
Add mapped type for wxPGVariant and switch all wxVariant in propgrid to this type. This allows the variant types only available in propgrid to be used the same as the core variant types.
This commit is contained in:
@@ -91,6 +91,13 @@ def run():
|
||||
tools.fixWindowClass(c, hideVirtuals=False, ignoreProtected=False)
|
||||
|
||||
|
||||
# Switch all wxVariant types to wxPGVariant, so the propgrid-specific
|
||||
# version of the MappedType will be used for converting to/from Python
|
||||
# objects.
|
||||
for item in module.allItems():
|
||||
if hasattr(item, 'type') and 'wxVariant' in item.type:
|
||||
item.type = item.type.replace('wxVariant', 'wxPGVariant')
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
tools.doCommonTweaks(module)
|
||||
tools.runGenerators(module)
|
||||
|
||||
Reference in New Issue
Block a user