Nicholas Burlett wrote: >I'm attempting to wrap up some custom gtk-2 objects using the cvs version >of pygtk. I've tried a number of different ideas on how to go about doing >this, but none have worked. I'm not actually sure that anything I've done >is correct, so could someone point me in the right direction? > > This was my response in a private mail:
You should be able to custruct a wrapper for your widget with the pygobject_new() function from the pygobject.h header file. (don't forget to call init_pygobject() in your extension module's init funciton). If you want a wrapper for your custom widget that can be used by python code (eg. call the new methods on your custom widget, etc), you will need to implement a wrapper class for the module. The pygtk code generator can help with this. Take a look at gnome-python for a few pointers. James. -- Email: [EMAIL PROTECTED] | Linux.conf.au 2003 Call for Papers out WWW: http://www.daa.com.au/~james/ | http://conf.linux.org.au/cfp.html _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
