A Ter, 2004-04-27 �s 21:19, Xavier Ordoquy escreveu:
> Hi
>
> I've been working on embedding Python in planner. I got nice results but
> I'm not sure I'm doing it the right way.
> Here is a little summary:
>
> At the application start:
> * start the python interpreter
>
> Once the script menu is activated:
> * copy the local dictionary to a new one (let's call it script_dict).
> This is needed to get the __builtins__
> * I execute the import pygtk/pygtk.require('2.0')/import gtk/import
> planner in the script_dict global namespace
> * I get the planner project and create the pygtk object for it, include
> it in the script_dict
> * I execute the file
> * I clear and release the script_dict
>
> But, if the script create a window, the window is still displayed.
> Is that the normal behaviour ? I though the window would have been
> destroyed.
The initial reference to a window is owned by gtk, not pygtk. Even in
plain gtk, you have to destroy() a window to make it go away.
> Another question is what namespace would the callbacks be in since I
> cleared and released the original one....
Sorry, no idea...
>
> Regards,
> Xavier Ordoquy.
>
> _______________________________________________
> pygtk mailing list [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
--
Gustavo J. A. M. Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/