I have a problem : I wrote a little GUI with glade, python
> and pygtk. This GUI produce one or many figures to plot
> results, depend on what the user click. To plot a new
> figure, I use from pylab import * an figure(). My GUI is
> a one windows GUI.
> The problem is : when 1 figure + the main window is open
> and I close this figure, the main window also close !
You should not mix pylab with GUI programming. You must use OO
matplotlib instead http://matplotlib.sf.net/faq.html#OO. pylab will
try and manage the figure windows for you, which is causing your
See examples/embedding_in_gtk*.py and examples/mpl_with_glade.py
> When my main scipt is run with the ipython console with
> 'run my_gui.py' , it works. But with 'python my_gui.py',
> it doesn't work.
This is a quirk resulting from the fact that in "interactive" mode,
which ipython sets, destroying the last window managed by pylab
doesn't result in a main quit
> What is trick ?