]> granicus.if.org Git - python/commit
bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)
authorTal Einat <taleinat+github@gmail.com>
Sun, 25 Aug 2019 05:52:58 +0000 (08:52 +0300)
committerGitHub <noreply@github.com>
Sun, 25 Aug 2019 05:52:58 +0000 (08:52 +0300)
commitd4b4c00b57d24f6ee2cf3a96213406bb09953df3
treef91a4598253622581add7aec2cf867f2bb8090e2
parentaef9ad82f7f667cd001a7112d3bc636e918626f7
bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)

These were caused by keeping around a reference to the Squeezer
instance and calling it's load_font() upon config changes, which
sometimes happened even if the shell window no longer existed.

This change completely removes that mechanism, instead having the
editor window properly update its width attribute, which can then
be used by Squeezer.
Lib/idlelib/editor.py
Lib/idlelib/idle_test/test_squeezer.py
Lib/idlelib/squeezer.py
Misc/NEWS.d/next/IDLE/2019-08-24-22-00-33.bpo-37929.jb7523.rst [new file with mode: 0644]