[pygtk] unable to wrap my Interface

John Finlay finlay at moeraki.com
Thu Aug 16 15:21:26 WST 2007


varun_shrivastava wrote:
> John Finlay wrote:
>   
>> h2def.py doesn't write define-interface lines if I recall correctly - 
>> just change the define-object line. You could try defsgen.py:
>>
>> http://svn.gnome.org/viewcvs/pygtk/trunk/codegen/defsgen.py?view=log
>>
>> which uses ctypes to generate .defs - its more comprehensive in 
>> generating .defs.
>>
>> John
>>
>> _______________________________________________
>> pygtk mailing list   pygtk at daa.com.au
>> http://www.daa.com.au/mailman/listinfo/pygtk
>> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>>
>>
>>     
>
> i tried using defsgen.py but it displays following error message
> Traceback (most recent call last):
>   File "/usr/local/share/pygtk/2.0/codegen/defsgen.py", line 85, in <module>
>     import ctypes
>   File "/usr/local/lib/python2.5/ctypes/__init__.py", line 10, in <module>
>     from _ctypes import Union, Structure, Array
> ImportError: No module named _ctypes
>
> varun
>   
Looks like your python 2.5 installation is broken or your python setup 
is broken.

John


More information about the pygtk mailing list