likethebossiam
likethebossiam

Reputation: 33

How can I remove the Python Shell window while using Tkinter?

Hello to the Stack Overflow Community! I am an amateur coder & student and am developing a UI for my superiors at my 'school.' I have been bothered by the Python Shell window opening as well and was wondering if there was a way to remove that window without having my Tkinter program shut down.

Thanks!

Upvotes: 2

Views: 1810

Answers (2)

furas
furas

Reputation: 143097

If you run in IDLE then don't bother Python Shell - IDLE is used only to develop code.

Later you don't need IDLE to run it and you will no see Python Shell.

Upvotes: 0

Israel Unterman
Israel Unterman

Reputation: 13520

Rename you main script to have the extension .pyw. This file type, when executed, is by default run by pythonw.exe instead of python.exe, and it doesn't show the console.

You will need some means to report debug errors, though. Just an advice.

Upvotes: 1

Related Questions