漏洞
Windows 7专业版
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
我从中修改了line 9240
:
def Close(self):
""" """
self.window.Close()
self.window.__del__()
self.window = None
对此:
def Close(self):
""" """
self.window.Close()
# self.window.__del__()
self.window = None
它解决了问题。
不过你能自己检查一下吗。
谢谢你的帮助。
顺便说一句,PySimpleGui是一项了不起的工作!
错过了一个。 会很快修复..谢谢。 您发表的重要文章
固定并上传到GitHub
对于那个很抱歉!
亲爱的PySimpleGUI ,
请给我一些帮助。
我应该怎么做才能解决此问题?
我应该如何从GitHub下载它?
感谢您的提前帮助。
PyPI的更新为您解决了吗?