]> granicus.if.org Git - python/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:18:01 +0000 (23:18 -0700)
committerGitHub <noreply@github.com>
Sun, 25 Aug 2019 06:18:01 +0000 (23:18 -0700)
commite266d062e017b122b9741db2bd5fb99742378623
treed29cf7a57fe14ff8c6c278f1880b9d6fed1bcf24
parent21161d73d979012ec3b7247261178b3aa1555486
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]