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]: