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 f254b3b + c081f5a commit 8991f9fCopy full SHA for 8991f9f
1 file changed
examples/user_interfaces/embedding_in_tk_sgskip.py
@@ -8,7 +8,7 @@
8
import tkinter
9
10
from matplotlib.backends.backend_tkagg import (
11
- FigureCanvasTkAgg, NavigationToolbar2TkAgg)
+ FigureCanvasTkAgg, NavigationToolbar2Tk)
12
# Implement the default Matplotlib key bindings.
13
from matplotlib.backend_bases import key_press_handler
14
from matplotlib.figure import Figure
@@ -27,9 +27,9 @@
27
canvas.draw()
28
canvas.get_tk_widget().pack(side=tkinter.TOP, fill=tkinter.BOTH, expand=1)
29
30
-toolbar = NavigationToolbar2TkAgg(canvas, root)
+toolbar = NavigationToolbar2Tk(canvas, root)
31
toolbar.update()
32
-canvas._tkcanvas.pack(side=tkinter.TOP, fill=tkinter.BOTH, expand=1)
+canvas.get_tk_widget().pack(side=tkinter.TOP, fill=tkinter.BOTH, expand=1)
33
34
35
def on_key_press(event):
0 commit comments