X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bdcf3ef53dc862cc654c92c1c259ad9dc84605fc..423af76e39d975fff4e0030460e3aba795030b54:/wxPython/distrib/build_renamers.py diff --git a/wxPython/distrib/build_renamers.py b/wxPython/distrib/build_renamers.py index b6f4b9fba8..03f043a8d6 100755 --- a/wxPython/distrib/build_renamers.py +++ b/wxPython/distrib/build_renamers.py @@ -219,6 +219,7 @@ class Element: def write(self, moduleName, swigFile, pyFile): doRename = False + doPtr = False addWX = False revOnly = False @@ -257,6 +258,7 @@ class Element: elif self.tagtype == 'class' and self.module == moduleName: doRename = True + doPtr = True if self.sym_name != self.klass: #print self.sym_name self.name = self.sym_name @@ -287,6 +289,9 @@ class Element: if addWX and not old.startswith('wx'): old = 'wx'+old pyFile.write("%s = wx.%s.%s\n" % (old, moduleName, new)) + if doPtr: + pyFile.write("%sPtr = wx.%s.%sPtr\n" % (old, moduleName, new)) + #else: