How to hide Windows console using python Tkinter?

I tried to rename my .py file to .pyw. But compiling with py2exe does not matter.

I tried using root.withdraw (), but all it does is freeze the application, prevent the initial canvas from appearing and not delete the command window anyway.

Anyone have a solution?

My root: root = Tk ()

+5
source share
1 answer

I ended up finding a solution at http://ubuntuforums.org/showthread.php?t=728170

, , setup(console=["yourapp.py"]) setup(windows=["yourapp.py"]), , py2exe.

+5

All Articles