The only thing I can think of is that when you import MySQLdb, the Python garbage collector gets run, causing some unreferenced object to get collected (in this case, probably a gtk.ItemFactory). You can easily check this by replacing the import statement with "import gc; gc.collect()"Hello, I would continue a programm beginned with pygtk 1.99.13 and python 2.2 (which was working well) with python 2.2.2 and pygtk 2.0 and it is crazy...
I have a top level window with : vbox ---vbox ------ a menubar ---vbox ------ a notebook
Each choice of menu call a module which open and write a new page of Notebook and when inside this module, there is a onnection to MySQLdb, my menu is eaten by the new page of notebook.
If my module has a line "import MySQLdb" but no connexion requested, it
is good, but if the module as a line "from %ySQLdb import *", without connection,
it eat my menubar !
I can't understand the link between my menu and mysql ! I have try MySQLdb 0.9.1, 0.9.2 and 0.9.3 test, it is the same thing.
Please, an idea ?
James.
-- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
