mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 19:55:49 +03:00
[GH-ISSUE #342] Script Browser Window Suddenly Opening Halfway Off Screen #288
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @carmitrey on GitHub (Dec 7, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/342
Discussed in https://github.com/brentvollebregt/auto-py-to-exe/discussions/341
Originally posted by carmitrey December 7, 2022
Up until today, this has worked flawlessly and is a great and easy tool for those looking to distribute apps without needing to worry about having end users download dependencies.
However, starting recently, when I click "Browse" next to the Script Location field, the Finder window is opening half-way off the screen and I cannot figure out how to fix it or move it back. I am unable to simply drag it back into view.
I have tried simply rebooting Mac OS but that doesn't seem to fix the issue and wasn't sure maybe there is some caching somewhere that keeps loading the window in this position rather than in the center of my screen.
If it's any help, this seemed to start after I had started using an additional monitor and discontinued using it later.
Appreciate any assistance on figuring out how to move this window back into view.
Thanks!
@brentvollebregt commented on GitHub (Dec 10, 2022):
If you execute the following, do you get the same result:
@carmitrey commented on GitHub (Dec 12, 2022):
Yes, I get the Tkinter window in the same exact place down in the bottom left as shown in my screenshot.
@carmitrey commented on GitHub (Dec 12, 2022):
@brentvollebregt
Oddly, if I comment out the line
root.wm_attributes('-topmost', 1), the window centers perfectly in the middle of my main monitor again.Within dialogs.py of the auto-py-to-exe package, I commented out lines 28, 51, 62, 73, and it seems to be working again!
Additionally, I was able to print out the coordinates of the window as well while testing:
print("Coordinates:", root.winfo_x(), root.winfo_y())For whatever reason Tkinter is seeing 0,0 as being off the screen, which is weird as it didn't do this previously.
@brentvollebregt commented on GitHub (Dec 13, 2022):
I believe we need
root.wm_attributes('-topmost', 1)so the dialog appears on top of other windows (otherwise users won't see them open).When you removed the lines, did the dialogs start appearing under others sometimes?
@carmitrey commented on GitHub (Dec 13, 2022):
Yea, that is what that seems to be used for.
At least in my case, it does hide the window behind anything that is
currently displayed, but the window is at least usable.
I am going to try uninstalling the packages today and reinstall them as I
think this is more of an issue with Tkinter than I think it's your library.
Open to any other suggestions but this seems to at least work for the time
being.
Thanks!
On Tue, Dec 13, 2022 at 12:47 AM Brent Vollebregt @.***>
wrote:
@brentvollebregt commented on GitHub (Dec 14, 2022):
With you saying you still have the issue when just running the snippet I gave you, it shows you're right in saying it's not auto-py-to-exe. I have never seen this issue before so am unable to provide any more help sorry.
@carmitrey commented on GitHub (Dec 14, 2022):
No worries Brent!
I'll keep digging, but I appreciate you pointing me in the right direction.
On Wed, Dec 14, 2022 at 5:58 AM Brent Vollebregt @.***>
wrote:
@brentvollebregt commented on GitHub (Dec 15, 2022):
I'll close this issue for now but if you find auto-py-to-exe is doing something wrong in this context, comment and we can re-open the issue 👌