This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients taleinat, terry.reedy
Date 2019-08-23.13:27:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 callback
Traceback (most recent call last):
  File "F:\dev\3x\lib\tkinter\", line 1885, in __call__
    return self.func(*args)
  File "F:\dev\3x\lib\idlelib\", line 172, in ok
  File "F:\dev\3x\lib\idlelib\", line 186, in apply
  File "F:\dev\3x\lib\idlelib\", line 240, in activate_config_changes
  File "F:\dev\3x\lib\idlelib\", line 222, in reload
  File "F:\dev\3x\lib\idlelib\", line 318, in load_font
    Font(text, font=text.cget('font')).measure('0')
  File "F:\dev\3x\lib\idlelib\", line 10, in __getattr__
    attr = getattr(self.delegate, name) # May raise AttributeError
AttributeError: '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?
Date User Action Args
2019-08-23 13:27:44terry.reedysetrecipients: + terry.reedy, taleinat
2019-08-23 13:27:44terry.reedysetmessageid: <>
2019-08-23 13:27:44terry.reedylinkissue37929 messages
2019-08-23 13:27:44terry.reedycreate