mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +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.",
|
"DataViewVirtualListModel":"wx.dataview.",
|
||||||
"DateEvent":"wx.adv.",
|
"DateEvent":"wx.adv.",
|
||||||
"DatePickerCtrl":"wx.adv.",
|
"DatePickerCtrl":"wx.adv.",
|
||||||
|
"DatePickerCtrlGeneric":"wx.adv.",
|
||||||
"DateProperty":"wx.propgrid.",
|
"DateProperty":"wx.propgrid.",
|
||||||
"DateSpan":"wx.",
|
"DateSpan":"wx.",
|
||||||
"DateTime":"wx.",
|
"DateTime":"wx.",
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ def run():
|
|||||||
gdpc = tools.copyClassDef(dpc, 'wxDatePickerCtrlGeneric')
|
gdpc = tools.copyClassDef(dpc, 'wxDatePickerCtrlGeneric')
|
||||||
assert isinstance(gdpc, etgtools.ClassDef)
|
assert isinstance(gdpc, etgtools.ClassDef)
|
||||||
module.insertItemAfter(dpc, gdpc)
|
module.insertItemAfter(dpc, gdpc)
|
||||||
# and give it a new Python name to match Classic
|
# and give it an alias matching the class name in Classic
|
||||||
gdpc.pyName = 'GenericDatePickerCtrl'
|
module.addPyCode("GenericDatePickerCtrl = DatePickerCtrlGeneric")
|
||||||
|
|
||||||
# now back to our regular tweaking
|
# now back to our regular tweaking
|
||||||
for c in [dpc, gdpc]:
|
for c in [dpc, gdpc]:
|
||||||
|
|||||||
Reference in New Issue
Block a user