mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
FIx a couple issues in the pi generator where it is not generating proper code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -178,8 +178,11 @@ class PiWrapperGenerator(generators.WrapperGeneratorBase):
|
||||
#-----------------------------------------------------------------------
|
||||
def generatePyCode(self, pc, stream, indent=''):
|
||||
assert isinstance(pc, extractors.PyCodeDef)
|
||||
code = pc.code
|
||||
if hasattr(pc, 'klass'):
|
||||
code = code.replace(pc.klass.name+'.', '') # TODO: Check this
|
||||
stream.write('\n')
|
||||
stream.write(nci(pc.code, len(indent)))
|
||||
stream.write(nci(code, len(indent)))
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
def generatePyFunction(self, pf, stream, indent=''):
|
||||
@@ -442,7 +445,7 @@ def guessTypeInt(v):
|
||||
return True
|
||||
type = v.type.replace('const', '')
|
||||
type = type.replace(' ', '')
|
||||
if type in ['int', 'long', 'byte', 'size_t']:
|
||||
if type in ['int', 'long', 'byte', 'size_t', 'wxCoord']:
|
||||
return True
|
||||
if 'unsigned' in type:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user