8000 Merge pull request #5951 from efiring/tk_raise · QuLogic/matplotlib@07d17ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 07d17ba

Browse files
pelsonQuLogic
authored andcommitted
Merge pull request matplotlib#5951 from efiring/tk_raise
tkagg: raise each new window; partially addresses matplotlib#596
1 parent 944546c commit 07d17ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/backends/backend_tkagg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ def destroy(*args):
609609
self.window.update()
610610 603A
else:
611611
self.canvas.draw_idle()
612+
# Raise the new window.
613+
self.canvas.manager.window.attributes('-topmost', 1)
614+
self.canvas.manager.window.attributes('-topmost', 0)
612615
self._shown = True
613616

614617
def destroy(self, *args):

0 commit comments

Comments
 (0)
0