Alex Rivera | Logout

Hide console window with Tkinter and cx_Freeze

Asked 2011-04-02T14:55:44.913
9

I am using cx_freeze to freeze a tkinter app. When I run the exe I get a wonderfully USELESS console window along with my tkinter GUI.

I would like to remove/hide this useless black window.

I've seen threads that suggest the following:

root = tkinter.Tk()
root.withdraw()

The above code does the opposite of what I want. It hides my GUI, while the useless black window remains. I would like it to be the other way around.

Edit
Report

1 Answer

1

I'm assuming by "black window" you are referring to the terminal window. In order to disable this from popping up, save your file as a .pyw extension instead of .py

answered 2012-07-11T21:22:35.847

Your Answer