mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 03:50:06 +01:00
Ensure that functions that return our wxList wrappers are not creating a copy of the list, but rather using the one given to them. This is really only needed for those that are const methods, but I did it for all in case the C++ signature is changed to const.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -63,6 +63,7 @@ def run():
|
||||
|
||||
# ignore some overloads that will be ambiguous afer wrapping
|
||||
c.find('GetChildren').overloads = []
|
||||
c.find('GetChildren').noCopy = True
|
||||
c.find('GetClientSize').findOverload('int *').ignore()
|
||||
c.find('GetSize').findOverload('int *').ignore()
|
||||
c.find('GetVirtualSize').findOverload('int *').ignore()
|
||||
@@ -286,8 +287,9 @@ def run():
|
||||
module.addItem(tools.wxListWrapperTemplate('wxWindowList', 'wxWindow', module))
|
||||
|
||||
module.addCppFunction('wxWindowList*', 'GetTopLevelWindows', '()',
|
||||
briefDoc="Returns a list-like object of the the application's top-level windows, (frames,dialogs, etc.)",
|
||||
body="return &wxTopLevelWindows;")
|
||||
noCopy=True,
|
||||
briefDoc="Returns a list-like object of the the application's top-level windows, (frames,dialogs, etc.)",
|
||||
body="return &wxTopLevelWindows;")
|
||||
|
||||
module.addPyCode("PyWindow = wx.deprecated(Window, 'Use Window instead.')")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user