Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with window/dialog focus and tkinter #10536

Open
brot opened this issue Jan 12, 2025 · 2 comments
Open

Problem with window/dialog focus and tkinter #10536

brot opened this issue Jan 12, 2025 · 2 comments

Comments

@brot
Copy link

brot commented Jan 12, 2025

This is somehow a followup to #7036

When using my homebrew python+python-tk installation everything works fine, but when I use a uv installed python version, tkinter is basically working, but there is a problem with dialog/window focus.

When I use the homebrew python+python-tk installation and when using "filedialog.askopenfilename", the file dialog is opened in the foreground and immediately visible to the user

With the uv installed python version the file dialog stays in the background and a warning is printed too
python3[38524:799162] +[IMKClient subclass]: chose IMKClient_Modern

This is my small test script to easily reproduce this behavior

from tkinter import Tk
from tkinter import filedialog

root = Tk()
root.withdraw()  # Hide the main window
file_path = filedialog.askopenfilename()
print(file_path)
@charliermarsh
Copy link
Member

This may be a better fit for the python-build-standalone repo. I doubt there's anything to fix in uv here?

@zanieb
Copy link
Member

zanieb commented Jan 13, 2025

I wonder if this is astral-sh/python-build-standalone#296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants