Hi, thanks all, you really helped me a lot.
----- Original Message ----- From: "Tim Evans" <[EMAIL PROTECTED]> To: "David Farning" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, November 05, 2003 11:50 PM Subject: Re: [pygtk] pyGtk/C extension > David Farning wrote: > > >> - To create a python gtk widget from a C gtk widget: > >> pygobject_new((GObject*) widget); > >> If a python wrapper for 'widget' already exists, it will incref and > >> return that, other wise it will create a new python wrapper object. > > > > Do you possibly have a concrete example for this? In particular, I have > > a a custom gtk treeModel that I would like to wrap? > > The method I described is really only useful for small things. For > wrapping a new type, you would be best to use the "codegen" > autogeneration system. There is a good tutorial here: > http://www-106.ibm.com/developerworks/linux/library/l-wrap/ > As I said, my application consists of C and Python part. In fact, it is a midnight-like commander over Gtk called Zemljanka. Simple functions (copy, delete, ...) are provided in C to be able to run w/out Python. Other complex functions are done in Python to develop them fastly. My problem is when you're copying, converting file, ... and close the main window. At this moment I need to synchronize all the windows - close them, wait for their finish, etc. Second usecase is background manager - application monitoring all the Gtk windows of Zemljanka. Tobbi _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
