From: John H. <jdh...@ac...> - 2005-04-29 02:45:45
|
>>>>> "Michael" == Michael Soulier <mso...@gm...> writes: Michael> Hello, I'm writing an app that requires a gui interface Michael> that will generate graphs on demand. When one top-level Michael> window containing a new graph is created, it should not Michael> block the application from making new ones if the user Michael> requests one. Michael> I can do this myself but I like matplotlib. How could I Michael> do this? So far it seems that my app blocks on the show() Michael> call, and if I try to make a new graph after that, the Michael> whole application locks up and has to be killed. Don't use the pylab interface when building moderately complex applications -- use the OO library instead. What GUI toolkit are you using to build your app? See embedding_in_*.py, in the examples directory, where * is the name of your GUI toolkit, eg, tk, gtk, wx etc. See also http://matplotlib.sourceforge.net/faq.html#OO Hope this helps, JDH |