On Thu, Jan 15, 2004 at 03:53:11PM +0000, Pierre N wrote: > proceed. I tried to create a class and a .py file for each window, I > tried to centralise everything in one file and one class using > window.hide() and window.show() but it gets slower and slower the more I > use it. Should I use just one window and show() hide() all the widgets
This sounds suspicious. Either you've found a memory leak somewhere (database connections are something to watch), or you're recreating your windows (perhaps by using glade.xml repeatedly over the same glade files) every time you're displaying them (which could be considered as a type of leak as well). I have PyGTK apps with multiple windows that can run for days without slowing down, which is why I say this isn't a toolkit or binding limitation. As to whether to structure your app in multiple windows or a single one, that choice should really be guided by usability and the expected ergonomics (rather than performance workarounds ;) of your application. Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
