Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9955a7c + ddaaa0e commit 364a67bCopy full SHA for 364a67b
lib/matplotlib/backends/_backend_tk.py
@@ -843,7 +843,7 @@ def save_figure(self, *args):
843
844
default_extension = self.canvas.get_default_filetype()
845
default_filetype = self.canvas.get_supported_filetypes()[default_extension]
846
- filetype_variable = tk.StringVar(self, default_filetype)
+ filetype_variable = tk.StringVar(self.canvas.get_tk_widget(), default_filetype)
847
848
# adding a default extension seems to break the
849
# asksaveasfilename dialog when you choose various save types
0 commit comments