Ask coding questions

← Back to all posts
Pygame "Open in a new tab" producing error
DavidWilson (4)

I have a simple Pygame script (

It works in the editor to set a screen size and background color, but when I try to run it in a different window with the following link (, it runs into the following issue:

Thanks for any help

Answered by Scoder12 (653) [earned 5 cycles]
View Answer
Scoder12 (653)

That's not an error as that is the same thing printed in the editor. Pygame does not yet have support for a new tab and will only show you the console output so that is why you won't see your window. Right now the only option is to work in the editor, but I'm sure the devs are working on it as it is a highly requested feature.

I am a helper. If this is a good answer, please upvote

DavidWilson (4)

@Scoder12 Thank you for the clarification.