We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以下のようなコードでメモリリークが発生することを確認しました。
# Table memory test # import PySimpleGUI as eg import TkEasyGUI as eg import random headings = [f"col{i}" for i in range(20)] values = [[f"({i},{j})" for j in range(20)] for i in range(100)] layout = [ [eg.Table(values=values, headings=headings, key="-table-", enable_events=True, expand_y=True)], [eg.HSeparator()], [eg.Button("Change"), eg.Button("Close")], ] # create window window = eg.Window( "Table memory test", layout, resizable=True, size=(800, 600)) def change_values(win): win["-table-"].update( values=[[ f"({i},{j}={random.randint(11111,99999)})" for j in range(20) ] for i in range(10_000)]) # event loop while True: event, values = window.read(timeout=1000) if event == "Change": change_values(window) elif event == "Close" or event == eg.WIN_CLOSED: break elif event == eg.TIMEOUT_KEY: change_values(window) window.close()
できるだけ丁寧にメモリ解放するように調整します。
#56 と関係。
The text was updated successfully, but these errors were encountered:
Fixed Table widget memory leak #57
e93dd17
No branches or pull requests
以下のようなコードでメモリリークが発生することを確認しました。
できるだけ丁寧にメモリ解放するように調整します。
#56 と関係。
The text was updated successfully, but these errors were encountered: