Merge pull request #1580 from novel-yet-trivial/patch-1

fix python2 tkinter import
This commit is contained in:
MikeTheWatchGuy 2019-06-25 20:05:04 -04:00 committed by GitHub
commit c5493079be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2,13 +2,14 @@
import sys import sys
if sys.version_info[0] >= 3: if sys.version_info[0] >= 3:
import PySimpleGUI as sg import PySimpleGUI as sg
import tkinter as Tk
else: else:
import PySimpleGUI27 as sg import PySimpleGUI27 as sg
import Tkinter as Tk
import matplotlib import matplotlib
matplotlib.use('TkAgg') matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasAgg from matplotlib.backends.backend_tkagg import FigureCanvasAgg
import matplotlib.backends.tkagg as tkagg import matplotlib.backends.tkagg as tkagg
import tkinter as Tk
import inspect import inspect
""" """