Skip to content

Commit

Permalink
Merge pull request #5951 from efiring/tk_raise
Browse files Browse the repository at this point in the history
tkagg: raise each new window; partially addresses #596
  • Loading branch information
pelson committed Feb 3, 2016
2 parents 1fa2697 + 68f86b3 commit 600464d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/matplotlib/backends/backend_tkagg.py
Expand Up @@ -609,6 +609,9 @@ def destroy(*args):
self.window.update()
else:
self.canvas.draw_idle()
# Raise the new window.
self.canvas.manager.window.attributes('-topmost', 1)
self.canvas.manager.window.attributes('-topmost', 0)
self._shown = True

def destroy(self, *args):
Expand Down

0 comments on commit 600464d

Please sign in to comment.