Jimothy Cardotha
Jimothy Cardotha

Reputation: 103

How can I change color of the top bar of a pygame window?

I am wondering if it is possible to change the color of the top bar of a pygame window. If it is possible please tell me how.

Image of the pygame window:

Here's an image of the top bar.

Any suggestions would be very much appreciated.

Upvotes: 2

Views: 1904

Answers (1)

Mike67
Mike67

Reputation: 11342

The short answer is no. Longer answer - You need to access the Windows message pump and override the Paint event.

You're better off just hiding the title bar and drawing your own header:

screen = pygame.display.set_mode((640, 480), pygame.NOFRAME)

Upvotes: 4

Related Questions