Hi all,
I am currently trying to port the python wrapper for a gtk widget
(gtkscintilla2).
*** SOME CONTEXT:
Original wrapper works with pygtk1 (say 'W1').
Since the gtk widget is now available for gtk2, I am trying to modify
W1 in order to make it working with pygtk2 (say 'W2').
I have to say I am not sure about the result, since I am not as much
familiar with pygtk c-side as I'd like, and in general with gtk. In
particular in W1 I found many references to functions PyGtk_{New, Get,
Type}, defined by pygtk.h.
In W2 pygtk.h does no longer export like that functions. Instead,
pygobject.h exports similar functions, and I tried to guess the
matching as follows (don't know if this is correct):
#define PyGtk_New pygobject_new
#define PyGtk_Get pygobject_get
#define PyGtk_Type PyGPointer_Type
*** THE PROBLEM:
W2 initialization code simply calls init_pygtk().
After initialization, every time W2's code calls PyGtk_New
(=pygobject_new) a segfault occurs.
Don't know if I provided information enough, but can someone
understand what am I missing?
More in general, there exist documents or tutorials that explain how
to build pygtk wrappers for gtk widgets?
Thank you,
roberto
--
------------------------------------------------------
Roberto Cavada
ITC-irst Institute for Scientific and Technological Research
Automated Reasoning Systems - Formal Methods Group
Via Sommarive, 18 - 38050 Povo (TN) - Italy
Tel: +39 0461 314 321 Fax: +39 0461 302 040
[EMAIL PROTECTED] http://sra.itc.it/people/cavada/
------------------------------------------------------
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
- Re: [pygtk] Porting of wrapper from pygtk1 to pygtk2 Roberto Cavada
- Re: [pygtk] Porting of wrapper from pygtk1 to pygtk2 Johan Dahlin
- Re: [pygtk] Porting of wrapper from pygtk1 to pygt... Roberto Cavada
