How to run programs written in Python on windows hiding terminal feedback

6

I have the following situation: I have a program written in python that works with Gtk + webkit + flask. To run such a program I should log in to the CMD and type "python.py file" and it will starta my GUI application normally. Where according to use some debug messages are companies in the CMD terminal.

My question is this:

  

How to start my python application and "hide possible return from   error in CMD "?

Something like rotating the terminal in the background.

    
asked by anonymous 23.12.2015 / 04:46

3 answers

5

Python in Windows has two executables. The python.exe and pythonw.exe . The difference between them is that pythonw.exe does not open a terminal window.

If you are going to run the program by clicking on it, you can do with Abrir com or rename the file to .pyw .

For cmd , use pythonw arquivo.py .

    
15.05.2016 / 02:18
0

Have you tried renaming your file .py to .pyw ? This causes the program to run in the background with no return from the terminal.

    
13.01.2016 / 14:40
-1

You do not need to rename the file. Enter the file path, type: python and the file name and click Enter .

$ C:\Users\wagne\OneDrive\Documentos\Python> python .\aula001.py
Olá mundo!
    
07.06.2018 / 12:24