Closed CMGreenspon closed 2 years ago
@jjdenis - it looks like this (and some other PRs) 'fix' the fact that certain windows appear in the background.
From my understanding of Tk, we're explicitly calling localRoot.withdraw()
, which indicates that the backgrounding of the window is an active choice. The TK recommended way to subsequently get it into the foreground would be calling deiconify
.
Before I go and meddle, is there any context that you could help share on this, please?
In particular (but not limited to):
withdraw()
call in the first place?Thanks!
... right, so the 'parent' box is something that we actively are wanting to hide, however the delegation to Tk for the 'aksopenfilename' is something that we want to get focus.
Example: we don't want to see the 'tk' window here (upper left) but we do want to see the 'Open' window:
... and the 'topmost' attribute does indeed do what it says on the tin! Okay, I think that this PR looks good to me - I'll do the same for the similar diropen_box and filesave_box(es).
update: done as #199
Exactly what i was missing, it appears to be the easiest and most robust way to handle this.