Reputation: 361
I am using
import ctypes
ctypes.windll.user32.ShowWindow( ctypes.windll.kernel32.GetConsoleWindow(), 6 )
to close the console and leave the pygame window open however I have to click on the window to interact with it. Can I make it so it goes back to the pygame window automatically?
Upvotes: 0
Views: 969
Reputation: 3245
A python script may be run in windowed mode by launching with pythonw
, this may be automatically handled by changing the file extension to .pyw
.
See this answer for more detailed information.
Upvotes: 1