How to hide the cmd window when opening a program in tkinter?

0

I was wondering how to hide the cmd window that is created when I open my program in tkinter.

This is what I mean:

As you can see behind the tkinter window, one of cmd opens.

How can I hide it?

    
asked by ElAlien123 27.01.2018 в 01:46
source

2 answers

1

Simply save it with a .pyw extension.

This will prevent the console window from opening.

    
answered by 27.01.2018 / 02:19
source
-1

Your file.py change it to file.pyw

    
answered by 06.06.2018 в 05:39