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.
1 parent 9d76fd4 commit 5e59222Copy full SHA for 5e59222
1 file changed
examples/user_interfaces/embedding_in_tk_canvas.py
@@ -3,7 +3,11 @@
3
4
import matplotlib as mpl
5
import numpy as np
6
-import Tkinter as tk
+import sys
7
+if sys.version_info[0] < 3:
8
+ import Tkinter as tk
9
+else:
10
+ import tkinter as tk
11
import matplotlib.backends.tkagg as tkagg
12
from matplotlib.backends.backend_agg import FigureCanvasAgg
13
0 commit comments