Cisplatin
Cisplatin

Reputation: 2998

How to run a Python program without a window?

Is it possible to make a program in Python that, when run, does not actually open any window (including command prompt)?

For example, opening the program would appear to do nothing, but in reality, the program is running in the background somewhere.

Thanks!

Upvotes: 0

Views: 175

Answers (2)

falsetru
falsetru

Reputation: 369444

Are you running the python program by double clicking *.py file in Windows?

Then, rename the *.py file to *.pyw.

Upvotes: 3

Blender
Blender

Reputation: 298532

Run it with pythonw.exe instead of python.exe.

Upvotes: 2

Related Questions