Changed bad if statements that were using 'is' and made '==' instead.
This commit is contained in:
parent
23dfb5f7cc
commit
ad100b8e75
22 changed files with 45 additions and 52 deletions
|
@ -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
|
||||
|
||||
"""
|
||||
|
@ -892,7 +893,7 @@ while True:
|
|||
event, values = window.Read()
|
||||
# print(event)
|
||||
# show it all again and get buttons
|
||||
if event is None or event is 'Exit':
|
||||
if event in (None, 'Exit'):
|
||||
break
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue