]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 25 Aug 2019 06:17:19 +0000 (23:17 -0700)
committerGitHub <noreply@github.com>
Sun, 25 Aug 2019 06:17:19 +0000 (23:17 -0700)
commitf2b468dd6d0bdbe2e87c0ca7515800a115e95e54
treed9a01ae043c757e40418846d986cc729e66a972b
parente6802d8a2ea50fae3ee0079622d1402ea83e441e
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.
(cherry picked from commit d4b4c00b57d24f6ee2cf3a96213406bb09953df3)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
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]