From f2b7035a5a8442c389769d545a76e31994f6ae54 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 13 Nov 2020 09:38:39 -0800 Subject: [PATCH] Swap which is the real name and which is the alias for DatePickerCtrlGeneric --- docs/sphinx/itemToModuleMap.json | 1 + etg/datectrl.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/sphinx/itemToModuleMap.json b/docs/sphinx/itemToModuleMap.json index 33c8fba3..5cdb410e 100644 --- a/docs/sphinx/itemToModuleMap.json +++ b/docs/sphinx/itemToModuleMap.json @@ -891,6 +891,7 @@ "DataViewVirtualListModel":"wx.dataview.", "DateEvent":"wx.adv.", "DatePickerCtrl":"wx.adv.", +"DatePickerCtrlGeneric":"wx.adv.", "DateProperty":"wx.propgrid.", "DateSpan":"wx.", "DateTime":"wx.", diff --git a/etg/datectrl.py b/etg/datectrl.py index 7fb97f96..8630f142 100644 --- a/etg/datectrl.py +++ b/etg/datectrl.py @@ -42,8 +42,8 @@ def run(): gdpc = tools.copyClassDef(dpc, 'wxDatePickerCtrlGeneric') assert isinstance(gdpc, etgtools.ClassDef) module.insertItemAfter(dpc, gdpc) - # and give it a new Python name to match Classic - gdpc.pyName = 'GenericDatePickerCtrl' + # and give it an alias matching the class name in Classic + module.addPyCode("GenericDatePickerCtrl = DatePickerCtrlGeneric") # now back to our regular tweaking for c in [dpc, gdpc]: