mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Add docstrings for some compatibility aliases
This commit is contained in:
@@ -83,9 +83,15 @@ def run():
|
|||||||
c.find('Insert').findOverload('clientData').find('clientData').transfer = True
|
c.find('Insert').findOverload('clientData').find('clientData').transfer = True
|
||||||
|
|
||||||
# for compatibility, should they be deprecated?
|
# for compatibility, should they be deprecated?
|
||||||
c.addPyMethod('AppendItems', '(self, items)', 'self.Append(items)')
|
c.addPyMethod('AppendItems', '(self, items)',
|
||||||
c.addPyMethod('GetItems', '(self)', 'return self.GetStrings()')
|
doc="Alias for :meth:`Append`",
|
||||||
c.addPyMethod('SetItems', '(self, items)', 'self.Set(items)')
|
body="self.Append(items)")
|
||||||
|
c.addPyMethod('GetItems', '(self)',
|
||||||
|
doc="Alias for :meth:`GetStrings`",
|
||||||
|
body="return self.GetStrings()")
|
||||||
|
c.addPyMethod('SetItems', '(self, items)',
|
||||||
|
body="self.Set(items)",
|
||||||
|
doc="Alias for :meth:`Set`")
|
||||||
|
|
||||||
|
|
||||||
c = module.find('wxControlWithItems')
|
c = module.find('wxControlWithItems')
|
||||||
|
|||||||
Reference in New Issue
Block a user