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.
Another question is what namespace would the callbacks be in since I
cleared and released the original one....
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/