Bug
Windows 7 pro
3.7.4
4.4.1
while True:
sg.Print("Hello World")
event, values = window.Read(timeout=50)
Traceback (most recent call last):
File "C:/***/app.py", line 52, in <module>
sg.Print("Hello World")
File "D:\Python\Python37-32\lib\site-packages\PySimpleGUI\PySimpleGUI.py", line 9273, in EasyPrint
DebugWin.debug_window.Print(*args, end=end, sep=sep)
File "D:\Python\Python37-32\lib\site-packages\PySimpleGUI\PySimpleGUI.py", line 9227, in Print
self.Close()
File "D:\Python\Python37-32\lib\site-packages\PySimpleGUI\PySimpleGUI.py", line 9243, in Close
self.window.__del__()
AttributeError: 'Window' object has no attribute '__del__'
D:\Python\Python37-32\Lib\site-packages\PySimpleGUI\PySimpleGUI.py
I modificated the line 9240 from this:
def Close(self):
""" """
self.window.Close()
self.window.__del__()
self.window = None
to that:
def Close(self):
""" """
self.window.Close()
# self.window.__del__()
self.window = None
It solved the problem.
Could you check it by yourself though.
Thanks for your help.
Btw, PySimpleGui is an awesome work!
Missed one. Will fix quickly.. Thank. You for great issue post
Fixed and uploaded to GitHub
Sorry about that!
Dear PySimpleGUI,
may I have some help.
What should I do to have this fix?
How should I download it from GitHub?
Thanks for your kind help in advance.
Has this been resolved for you with an update on PyPI?