]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/py/wxd/gen.py
3 from wxPython
import wx
12 if key
.endswith('Ptr'):
15 elif key
+'Ptr' in keys
:
17 newd
[key
] = d
[key
+'Ptr']
26 if inspect
.isclass(value
):
33 # print type(value), value
40 if name
.endswith('Ptr'):
42 ## if name != 'wxNotebook':
46 parent
= cls
.__bases
__[0].__name
__
47 if parent
.endswith('Ptr'):
49 parent
= '(%s)' % parent
50 items
= cls
.__dict
__.keys()
53 print 'class %s%s:' % (name
, parent
)
57 attr
= cls
.__dict
__[item
]
58 if inspect
.isfunction(attr
):
59 print sp4
+ 'def ' + item
+ '(self):'
60 print sp4
+ sp4
+ '""""""'
61 print sp4
+ sp4
+ 'pass'
65 def genFunction(func
):
68 print 'def %s():' % name