Work around the default ctor being protected, tell sip how to get a default instance.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-07-08 01:42:48 +00:00
parent 585f1a11cc
commit 793d46fae7

View File

@@ -32,9 +32,13 @@ def run():
c = module.find('wxStandardPaths')
assert isinstance(c, etgtools.ClassDef)
c.find('wxStandardPaths').ignore()
c.find('wxStandardPaths').ignore(False)
c.abstract = True
# Since the ctor is protected we need to tell SIP how to get a default
# instance of this class
c.instanceCode = 'sipCpp = & wxStandardPaths::Get();'
c.find('IgnoreAppSubDir').ignore()
c.find('DontIgnoreAppSubDir').ignore()
c.find('IgnoreAppBuildSubDirs').ignore()