mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-09 05:20:08 +01:00
Fix pi test failures - add missing global strings
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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']:
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -75,6 +75,7 @@ def run():
|
||||
virtual wxString OnGetItem(size_t n) const;
|
||||
"""))
|
||||
|
||||
module.addGlobalStr('wxSimpleHtmlListBoxNameStr', c)
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
tools.doCommonTweaks(module)
|
||||
|
||||
@@ -56,6 +56,8 @@ def run():
|
||||
|
||||
tools.fixWindowClass(c)
|
||||
|
||||
module.addGlobalStr('wxListBoxNameStr', c)
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
tools.doCommonTweaks(module)
|
||||
tools.runGenerators(module)
|
||||
|
||||
Reference in New Issue
Block a user