خلل برمجي
نظام التشغيل 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 -packs \ 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؟