Hi whats a good way to add a file open dialog box to a
> matplotlib script like the one in the demo called
> "simple_plot.py". I'm new to python and am really
> impressed with using matplotlib. Is there an EZ way to add
> a file select dialog?
If you are using the GTK backend, there are two examples in the
examples dir of the source distribution (*.zip or *.tar.gz) to help
1) embedding_in_gtk2.py shows you how to use matplotlib in a GTK example.
2) mpl_with_glade.glade and mpl_with_glade.py show you how to use
matplotlib with gtk and glade. glade is a RAD (rapid application
development) tool that allows you to design GUIs in a
If you want to use the wx backend, jeremy has provided an example of
how to use matplotlib in a wx application embedding_in_wx.py.
While none of these examples specifically address the issue of file
selection dialogs, if you know something about the backend GUI widget
library, it's easy to add File Selection to the examples provided.