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 terry.reedy
Date 2022-02-03.20:37:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643920672.2.0.211419458926.issue46630@roundup.psfhosted.org>
In-reply-to
Content
On Mac, and I presume *nix in general, query boxes open with the focus on the first entry box, with the cursor displayed.  One can immediate enter a line number, dotted module name, or whatever. On Windows, since 3.9, one must hit Tab or click on the entry box to set the focus.  If a blank entry is an error, one can even click on OK or hit Enter and the focus will move after an error message.

idlelib/query.py already has self.entry.focus_set.  Why did that stop working in 3.9?  All patches to query.py were before May 2021 and backported to 3.8.  Perhaps the upgrade from tk 8.6.9 to 8.6.12 had an effect given the code as it is.  Text widgets have the same issue and Editor window has 'text.focus_set' in '__init__' and that works.  Whatever, moving entry.focus_set() to just after self.deiconify() works without affecting unittests both in Windows repository and 3.11 installed on macOS.
History
Date User Action Args
2022-02-03 20:37:52terry.reedysetrecipients: + terry.reedy
2022-02-03 20:37:52terry.reedysetmessageid: <1643920672.2.0.211419458926.issue46630@roundup.psfhosted.org>
2022-02-03 20:37:52terry.reedylinkissue46630 messages
2022-02-03 20:37:52terry.reedycreate