On Thu, Mar 3, 2011 at 3:15 AM, Martin Teichmann <lkb.teichm...@gmail.com>wrote:

> Hi Benjamin, Hi List,
>
> sorry for the backwards patch, here the forward one:
>
> ------------------------------------------------------------------------
> --- backend_qt4_orig.py 2011-03-02 16:16:38.257797767 +0100
> +++ backend_qt4.py      2011-03-02 16:17:19.526831397 +0100
> @@ -395,8 +395,9 @@
>              filters.append(filter)
>         filters = ';;'.join(filters)
>
> -        fname = QtGui.QFileDialog.getSaveFileName(
> -            self, "Choose a filename to save to", start, filters,
> selectedFilter)
> +        fname, _ = QtGui.QFileDialog.getSaveFileNameAndFilter(
> +            self, "Choose a filename to save to", start, filters,
> +            selectedFilter)
>         if fname:
>             try:
>                 self.canvas.print_figure( unicode(fname) )
>
> ----------------------------------------------------------------------------
>
> It is done against a rather old version of matplotlib (the 0.99.3, the
> newest in kubuntu...) but the code hasn't changed since then,
> acording to github, so only the line numbers are wrong.
>
> The second patch I sent is now obsolete, as you hinted to the
> patch on github. I had followed the link on the matplotlib
> web site (http://matplotlib.sourceforge.net/) which links still to
> some subversion repository once you click onto "source code"
> Could please someone update that link to github? Or is there
> a new matplotlib website as well (google didn't find one).
>
> Greetings
>
> Martin
>
> --
> Max-Born-Institut
> Max-Born-Straße 2a
> 12489 Berlin
> +49 30 6392 1234
>

Martin,

Just for completeness, I wanted to include a link to some sort of reference
indicating a need to change the function.  I can not find any documentation
that says that we need to change from getSaveFileName() to
getSaveFileNameAndFilter().  Can you please provide a source explaining the
need for this change?

Thanks,
Ben Root
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to