0

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!

2
  • Yes. Can you give a little more information as to what you're trying to achieve and on which operating system? Commented Jul 27, 2013 at 4:13
  • The program I'm making just doesn't need a screen, and so I'd rather not have one. I'm using Windows. Commented Jul 27, 2013 at 4:16

2 Answers 2

3

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

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

Sign up to request clarification or add additional context in comments.

2 Comments

If I use this way, how would I go about closing the program?
@Sim, Kill the process from task manager. The process name is pythonw.exe.
2

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.