Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue37929

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:IDLE: OK sometimes fails to close configdialog
Type:behaviorStage:resolved
Components:IDLEVersions:Python 3.9, Python 3.8, Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: terry.reedyNosy List: miss-islington, taleinat, terry.reedy
Priority:normalKeywords:patch

Created on2019-08-23 13:27 byterry.reedy, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 15452mergedtaleinat,2019-08-24 08:17
PR 15484mergedmiss-islington,2019-08-25 05:53
PR 15485mergedmiss-islington,2019-08-25 05:53
Messages (6)
msg350281 -(view)Author: Terry J. Reedy (terry.reedy)*(Python committer)Date: 2019-08-23 13:27
If one opens configdialog when there is no Shell and then hits OK, the dialog fails to close.  The following Squeezer-related traceback appears in associated console when there is one.Exception in Tkinter callbackTraceback (most recent call last):  File "F:\dev\3x\lib\tkinter\__init__.py", line 1885, in __call__    return self.func(*args)  File "F:\dev\3x\lib\idlelib\configdialog.py", line 172, in ok    self.apply()  File "F:\dev\3x\lib\idlelib\configdialog.py", line 186, in apply    self.activate_config_changes()  File "F:\dev\3x\lib\idlelib\configdialog.py", line 240, in activate_config_changes    klass.reload()  File "F:\dev\3x\lib\idlelib\squeezer.py", line 222, in reload    instance.load_font()  File "F:\dev\3x\lib\idlelib\squeezer.py", line 318, in load_font    Font(text, font=text.cget('font')).measure('0')  File "F:\dev\3x\lib\idlelib\delegator.py", line 10, in __getattr__    attr = getattr(self.delegate, name) # May raise AttributeErrorAttributeError: 'NoneType' object has no attribute 'cget'Either the squeezer instance should be destroyed and removed along with Shell or, if keeping it is intentional, it should be removed from the update list and reinstated or if not doing that is intentional, it must either check 'if text is not None' before the access or catch the attribute error after.  Tal, which?
msg350356 -(view)Author: Tal Einat (taleinat)*(Python committer)Date: 2019-08-24 08:19
See PRGH-15452 with a fix.
msg350428 -(view)Author: Tal Einat (taleinat)*(Python committer)Date: 2019-08-25 05:53
New changesetd4b4c00b57d24f6ee2cf3a96213406bb09953df3 by Tal Einat in branch 'master':bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)https://github.com/python/cpython/commit/d4b4c00b57d24f6ee2cf3a96213406bb09953df3
msg350430 -(view)Author: miss-islington (miss-islington)Date: 2019-08-25 06:17
New changesetf2b468dd6d0bdbe2e87c0ca7515800a115e95e54 by Miss Islington (bot) in branch '3.7':bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)https://github.com/python/cpython/commit/f2b468dd6d0bdbe2e87c0ca7515800a115e95e54
msg350431 -(view)Author: miss-islington (miss-islington)Date: 2019-08-25 06:18
New changesete266d062e017b122b9741db2bd5fb99742378623 by Miss Islington (bot) in branch '3.8':bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)https://github.com/python/cpython/commit/e266d062e017b122b9741db2bd5fb99742378623
msg350433 -(view)Author: Tal Einat (taleinat)*(Python committer)Date: 2019-08-25 06:25
Fixed.
History
DateUserActionArgs
2022-04-11 14:59:19adminsetgithub: 82110
2019-08-25 06:25:32taleinatsetstatus: open -> closed
resolution: fixed
messages: +msg350433

stage: patch review -> resolved
2019-08-25 06:18:04miss-islingtonsetmessages: +msg350431
2019-08-25 06:17:23miss-islingtonsetnosy: +miss-islington
messages: +msg350430
2019-08-25 05:53:47miss-islingtonsetpull_requests: +pull_request15172
2019-08-25 05:53:11miss-islingtonsetpull_requests: +pull_request15171
2019-08-25 05:53:01taleinatsetmessages: +msg350428
2019-08-24 08:19:11taleinatsetmessages: +msg350356
2019-08-24 08:17:27taleinatsetkeywords: +patch
stage: needs patch -> patch review
pull_requests: +pull_request15144
2019-08-23 13:27:44terry.reedycreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp