|
From: Goyo <goy...@gm...> - 2012-11-22 18:00:05
|
2012/11/4 Brickle Macho <bri...@gm...>: > [...] When I show() a plot form within a Qt application I get the > following message printed on the console: > > QCoreApplication::exec: The event loop is already running > > I think I understand the error, obviously the application I calling form > control the even loop. I suppose I need to somehow supply a parent > window to pylab plot or the show() function. Is there a way to create > a plot and show so as not to use the main loop? Do not use show() in a GUI application. If you have a FigureCanvas instance embedded in your app, call its draw() method. If you use pyplot.figure() to create a matplotlib window from your app, call pyplot.draw(). Goyo |