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 dominic108
Recipients dominic108
Date 2019-12-31.14:44:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577803440.91.0.917127716186.issue39171@roundup.psfhosted.org>
In-reply-to
Content
If it's normal, then the error message should perhaps be more informative and user friendly than just a traceback: 

    Traceback (most recent call last):
      File "./dialog.py", line 6, in <module>
        integer_value = simpledialog.askinteger('Dialog Title', 'What is your age?', minvalue=0, maxvalue=100)
      File "/usr/lib/python3.7/tkinter/simpledialog.py", line 341, in askinteger
        d = _QueryInteger(title, prompt, **kw)
      File "/usr/lib/python3.7/tkinter/simpledialog.py", line 271, in __init__
        Dialog.__init__(self, parent, title)
      File "/usr/lib/python3.7/tkinter/simpledialog.py", line 137, in __init__
        if parent.winfo_viewable():
    AttributeError: 'NoneType' object has no attribute 'winfo_viewable'

If it is not too intrusive, it would be even more user friendly if the code found some parent window.
History
Date User Action Args
2019-12-31 14:44:00dominic108setrecipients: + dominic108
2019-12-31 14:44:00dominic108setmessageid: <1577803440.91.0.917127716186.issue39171@roundup.psfhosted.org>
2019-12-31 14:44:00dominic108linkissue39171 messages
2019-12-31 14:44:00dominic108create