Fix pi test failures - add missing global strings

This commit is contained in:
Scott Talbert
2016-09-09 20:45:10 -04:00
parent 78ae39a664
commit a26a0874aa
6 changed files with 11 additions and 6 deletions

View File

@@ -36,16 +36,17 @@ def run():
c = module.find('wxAboutDialogInfo')
assert isinstance(c, etgtools.ClassDef)
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
# Add some aliases for the non-UK spelling
# Do this after doCommonTweaks so that the .License property exists first
c.addPyCode("""\
AboutDialogInfo.HasLicense = AboutDialogInfo.HasLicence
AboutDialogInfo.GetLicense = AboutDialogInfo.GetLicence
AboutDialogInfo.License = AboutDialogInfo.Licence
""")
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.runGenerators(module)

View File

@@ -39,6 +39,8 @@ def run():
c.find('Create').findOverload('wxArrayString').find('choices').default = 'wxArrayString()'
tools.fixWindowClass(c)
module.addGlobalStr('wxChoiceNameStr', c)
#-----------------------------------------------------------------
tools.doCommonTweaks(module)

View File

@@ -40,8 +40,6 @@ def run():
c = module.find('wxComboCtrl')
tools.fixWindowClass(c)
module.addGlobalStr('wxComboBoxNameStr', c)
# These are protected methods that need to be unignored and also add back
# their virtual flags
for name in ['AnimateShow', 'DoSetPopupControl', 'DoShowPopup']:

View File

@@ -69,6 +69,7 @@ def run():
c.addPyCode("ComboBox.SetMark = wx.deprecated(ComboBox.SetTextSelection, 'Use SetTextSelection instead.')")
c.addPyCode("ComboBox.GetMark = wx.deprecated(ComboBox.GetTextSelection, 'Use GetTextSelection instead.')")
module.addGlobalStr('wxComboBoxNameStr', c)
#-----------------------------------------------------------------
tools.doCommonTweaks(module)

View File

@@ -75,6 +75,7 @@ def run():
virtual wxString OnGetItem(size_t n) const;
"""))
module.addGlobalStr('wxSimpleHtmlListBoxNameStr', c)
#-----------------------------------------------------------------
tools.doCommonTweaks(module)

View File

@@ -56,6 +56,8 @@ def run():
tools.fixWindowClass(c)
module.addGlobalStr('wxListBoxNameStr', c)
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.runGenerators(module)