mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Fix the wxMultiChoiceProperty ctor taking a wxArrayString to make it easier and more compatible with Classic.
This commit is contained in:
@@ -40,8 +40,16 @@ def run():
|
||||
# Tweak the parsed meta objects in the module object as needed for
|
||||
# customizing the generated code and docstrings.
|
||||
|
||||
#c = module.find('')
|
||||
#assert isinstance(c, etgtools.ClassDef)
|
||||
c = module.find('wxMultiChoiceProperty')
|
||||
assert isinstance(c, etgtools.ClassDef)
|
||||
|
||||
# Fix up the ctor taking a wxArrayString to be the one with the easier and
|
||||
# expected API
|
||||
m = c.find('wxMultiChoiceProperty').findOverload('strings')
|
||||
m.find('name').default = 'wxPG_LABEL'
|
||||
m.find('strings').default = 'wxArrayString()'
|
||||
m.find('strings').name = 'choices'
|
||||
m.find('value').default = 'wxArrayString()'
|
||||
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user