You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDLE: Search dialogs can be hidden behind the main window #81358
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/terryjreedy'closed_at=<Date2019-06-07.06:53:57.448>created_at=<Date2019-06-06.16:21:59.779>labels= ['3.8', 'expert-IDLE', 'type-bug', '3.7', '3.9']
title='IDLE: Search dialogs can be hidden behind the main window'updated_at=<Date2019-06-08.15:27:31.732>user='https://github.com/taleinat'
This issue was brought up by Irv Kalb on the idle-dev mailing list.
I haven't been able to reproduce it exactly as he described, but I have managed to do so otherwise, and remember it happening on occasion on other computers.
This appears to happen because the dialog windows are not being made transient relative to the main window. I'll have a PR up with a fix in a bit.
Following is what Irv Kalb sent to the mailing list:
I teach Python classes using IDLE. The search dialog is a real a problem for new students and me as the teacher. My students and I often get into a scenario where the search dialog gets hidden behind a editing window. When that happens, then you try to make edits in code and nothing happens. This happens to very often. I have learned to look for the hidden search dialog window, but my students get very flustered.
Simple steps to reproduce (I'm using Python 3.6.1 with IDLE):
Open a new document.
Enter any code (e.g., a = 1)
Bring up the Search Dialog.
If the Search Dialog is not over the rectangle of the editing window, move it anywhere over the editing window.
(This step is specifically to reproduce the problem, but this happens very often as students move windows around.)
Search for: a
Click: Find Next
Click in the editing window (with the intention to make some change)
Results:
Search Dialog is now hidden behind the editing window.
Keystrokes are now ignored in the editing window, even though the editing window appears to have focus.
User has no idea about how to get out of this situation - unless they have seen it before and know that the Search Dialog is still active behind the current window.
Irv's steps did not work for me either, on Windows, and I do not know how else to reproduce. So I cannot test that this fixes any hiding issue. However, the patch fixes bpo-24039. On Windows, it removes the inoperative minimize button and the unwanted maximize buttom, making the search dialog work like all the other IDLE dialogs I checked.
The issue Irv reported happened on macOS but not on Windows. I've reproduced his issue without this fix, and checked that this fix does indeed fix his issue.
For future reference, Irv also posted a video showing his issue on YouTube[1] (he sent a link to idle-dev).
Irv, a reminder: All reports of IDLE UI behavior (and some of internal behavior) need to be tagged with OS. Working 'cross-platform' does not mean 'the same across platforms'. In particular, tcl/tk long ago made a decision to adjust to platform conventions (which have sometimes changed ;-). I should have asked 'what OS' when I saw your report.
Activity
taleinat commentedon Jun 6, 2019
This issue was brought up by Irv Kalb on the idle-dev mailing list.
I haven't been able to reproduce it exactly as he described, but I have managed to do so otherwise, and remember it happening on occasion on other computers.
This appears to happen because the dialog windows are not being made transient relative to the main window. I'll have a PR up with a fix in a bit.
Following is what Irv Kalb sent to the mailing list:
I teach Python classes using IDLE. The search dialog is a real a problem for new students and me as the teacher. My students and I often get into a scenario where the search dialog gets hidden behind a editing window. When that happens, then you try to make edits in code and nothing happens. This happens to very often. I have learned to look for the hidden search dialog window, but my students get very flustered.
Simple steps to reproduce (I'm using Python 3.6.1 with IDLE):
Results:
taleinat commentedon Jun 6, 2019
See proposed fix in #58077.
taleinat commentedon Jun 7, 2019
New changeset 554450f by Tal Einat in branch 'master':
bpo-37177: make IDLE's search dialogs transient (GH-13869)
554450f
miss-islington commentedon Jun 7, 2019
New changeset 295fe32 by Miss Islington (bot) in branch '3.8':
bpo-37177: make IDLE's search dialogs transient (GH-13869)
295fe32
miss-islington commentedon Jun 7, 2019
New changeset 685b806 by Miss Islington (bot) in branch '3.7':
bpo-37177: make IDLE's search dialogs transient (GH-13869)
685b806
taleinat commentedon Jun 7, 2019
New changeset 1b57ab5 by Tal Einat in branch '2.7':
[2.7] bpo-37177: make IDLE's search dialogs transient (GH-13869)
1b57ab5
terryjreedy commentedon Jun 7, 2019
Irv's steps did not work for me either, on Windows, and I do not know how else to reproduce. So I cannot test that this fixes any hiding issue. However, the patch fixes bpo-24039. On Windows, it removes the inoperative minimize button and the unwanted maximize buttom, making the search dialog work like all the other IDLE dialogs I checked.
taleinat commentedon Jun 8, 2019
The issue Irv reported happened on macOS but not on Windows. I've reproduced his issue without this fix, and checked that this fix does indeed fix his issue.
For future reference, Irv also posted a video showing his issue on YouTube[1] (he sent a link to idle-dev).
[1] http://www.youtube.com/watch?v=YWDsOEN8qsE
terryjreedy commentedon Jun 8, 2019
I saw the email, thanks for testing.
Irv, a reminder: All reports of IDLE UI behavior (and some of internal behavior) need to be tagged with OS. Working 'cross-platform' does not mean 'the same across platforms'. In particular, tcl/tk long ago made a decision to adjust to platform conventions (which have sometimes changed ;-). I should have asked 'what OS' when I saw your report.