Skip to content

Commit cd01d82

Browse files
committed
Hide Tk root window until later
On Windows, when using the tkagg backend with mpl 1.2.0rc2, before a figure window is displayed, a small, empty window is shown for a short amount of time.
1 parent c74ca21 commit cd01d82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/backend_tkagg.py

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def new_figure_manager_given_figure(num, figure):
8585
"""
8686
_focus = windowing.FocusManager()
8787
window = Tk.Tk()
88+
window.withdraw()
8889

8990
if Tk.TkVersion >= 8.5:
9091
# put a mpl icon on the window rather than the default tk icon. Tkinter

0 commit comments

Comments
 (0)