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

tkinter window doesn't open until mainloop() is invoked #1012

Open
djaychela opened this issue Feb 29, 2024 · 0 comments
Open

tkinter window doesn't open until mainloop() is invoked #1012

djaychela opened this issue Feb 29, 2024 · 0 comments

Comments

@djaychela
Copy link

I'm seeing a difference in behaviour between the python REPL and bpython.

When running this as two lines in the REPL:

import tkinter as tk
window = tk.Tk()

On python 3.12 (and I believe earlier) as soon as the window is created, it appears.

On bpython running the code makes a separate python app appear (i.e Python appears at the top left of the screen), but there's no window. If I look in 'force quit' then Python says it's not responding.

However, I can get the window to appear by calling window.mainloop(). In addition when this is called, Python no longer appears as 'not responding' in the Force Quit window.

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

No branches or pull requests

2 participants