Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@djaychela

Description

@djaychela

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 tkwindow = 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 callingwindow.mainloop(). In addition when this is called, Python no longer appears as 'not responding' in the Force Quit window.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp