mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
Swap which is the real name and which is the alias for DatePickerCtrlGeneric
This commit is contained in:
@@ -891,6 +891,7 @@
|
||||
"DataViewVirtualListModel":"wx.dataview.",
|
||||
"DateEvent":"wx.adv.",
|
||||
"DatePickerCtrl":"wx.adv.",
|
||||
"DatePickerCtrlGeneric":"wx.adv.",
|
||||
"DateProperty":"wx.propgrid.",
|
||||
"DateSpan":"wx.",
|
||||
"DateTime":"wx.",
|
||||
|
||||
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user