Swap which is the real name and which is the alias for DatePickerCtrlGeneric

This commit is contained in:
Robin Dunn
2020-11-13 09:38:39 -08:00
parent 8dd754b905
commit f2b7035a5a
2 changed files with 3 additions and 2 deletions

View File

@@ -891,6 +891,7 @@
"DataViewVirtualListModel":"wx.dataview.",
"DateEvent":"wx.adv.",
"DatePickerCtrl":"wx.adv.",
"DatePickerCtrlGeneric":"wx.adv.",
"DateProperty":"wx.propgrid.",
"DateSpan":"wx.",
"DateTime":"wx.",

View File

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