From 6cf9d2f3cd383c7b1ea9dae735a4e6c469e34a8d Mon Sep 17 00:00:00 2001 From: novel-yet-trivial Date: Tue, 18 Jun 2019 12:31:05 -0700 Subject: [PATCH] fix python2 tkinter import --- DemoPrograms/Demo_Matplotlib_Browser_Paned.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DemoPrograms/Demo_Matplotlib_Browser_Paned.py b/DemoPrograms/Demo_Matplotlib_Browser_Paned.py index 756857fb..66369630 100644 --- a/DemoPrograms/Demo_Matplotlib_Browser_Paned.py +++ b/DemoPrograms/Demo_Matplotlib_Browser_Paned.py @@ -2,13 +2,14 @@ import sys if sys.version_info[0] >= 3: import PySimpleGUI as sg + import tkinter as Tk else: import PySimpleGUI27 as sg + import Tkinter as Tk import matplotlib matplotlib.use('TkAgg') from matplotlib.backends.backend_tkagg import FigureCanvasAgg import matplotlib.backends.tkagg as tkagg -import tkinter as Tk import inspect """