Revision: 7042
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7042&view=rev
Author: jdh2358
Date: 2009-04-15 17:47:18 +0000 (Wed, 15 Apr 2009)
Log Message:
-----------
fix for tkagg filextension bug reported by fperez
Modified Paths:
--------------
branches/v0_98_5_maint/lib/matplotlib/backends/backend_tkagg.py
Modified: branches/v0_98_5_maint/lib/matplotlib/backends/backend_tkagg.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/backends/backend_tkagg.py
2009-04-14 14:29:31 UTC (rev 7041)
+++ branches/v0_98_5_maint/lib/matplotlib/backends/backend_tkagg.py
2009-04-15 17:47:18 UTC (rev 7042)
@@ -708,11 +708,17 @@
tk_filetypes = [
(name, '*.%s' % ext) for (ext, name) in sorted_filetypes]
+ # adding a default extension seems to break the
+ # asksaveasfilename dialog when you choose various save types
+ # from the dropdown. Passing in the empty string seems to
+ # work - JDH
+ #defaultextension = self.canvas.get_default_filetype()
+ defaultextension = ''
fname = asksaveasfilename(
master=self.window,
title='Save the figure',
filetypes = tk_filetypes,
- defaultextension = self.canvas.get_default_filetype()
+ defaultextension = defaultextension
)
if fname == "" or fname == ():
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins