mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 12:41:10 +02: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
|
||||
|
||||
# for compatibility, should they be deprecated?
|
||||
c.addPyMethod('AppendItems', '(self, items)', 'self.Append(items)')
|
||||
c.addPyMethod('GetItems', '(self)', 'return self.GetStrings()')
|
||||
c.addPyMethod('SetItems', '(self, items)', 'self.Set(items)')
|
||||
c.addPyMethod('AppendItems', '(self, items)',
|
||||
doc="Alias for :meth:`Append`",
|
||||
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')
|
||||
|
Reference in New Issue
Block a user