Pysimplegui: [バグ] EasyPrint、Print、eprintの問題

作成日 2019年09月26日  ·  4コメント  ·  ソース: PySimpleGUI/PySimpleGUI

問題の種類(拡張、エラー、バグ、質問)

バグ

オペレーティング・システム

Windows7プロ

Pythonバージョン

3.7.4

PySimpleGUIのポートとバージョン

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は素晴らしい作品です!

Bug Done - Download from GitHub

全てのコメント4件

逃した。 すぐに修正されます。ありがとう。 あなたは素晴らしい問題の投稿を

修正してGitHubにアップロード

すみません!

親愛なるPySimpleGUI

助けてもらえますか。

この修正を行うにはどうすればよいですか?

GitHubからどのようにダウンロードすればよいですか?

よろしくお願いします。

これはPyPIのアップデートで解決されましたか?

このページは役に立ちましたか?
0 / 5 - 0 評価