0

I have coded an application in python using the pygame library. Everything work, but when I run the application, it also opens the shell. Is there a way to hide the shell?

this is an screenshot for clarity

I have tried to mute the pygame 'welcome message', thinking that was it that opened the shell when I run the application(don't pay attention to the 'here' string printed on the shell, it is for debugging stuff and the shell is opened also without it), but it didn't work.

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Nov 16, 2022 at 4:10

1 Answer 1

1

Run the application using pythonw instead of python. pythonw is the exact same Python interpreter, but it's marked as a Windows GUI application, so it doesn't require a connection to a console.

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.