'How to change the titlebar in pygame?
I'm trying to change the titlebar color of my pygame window. Because I need to have the background white, but the titlebar is also white. Everyone says to just hide the titlebar.
That's not possible because
- I need to be able to close the program with the x button,
- I want to be able to move the window,
- I want to see the tite and the logo,
- Its just much prettier.
Solution 1:[1]
Unfortunately, it is not possible to change the titlebar a pygame window; that area is beyond the control of pygame. As you already know, you can hide it and draw your own, but then you lose the quit button and the drag functionality and would have to implement them yourself. And yes, both functionalities are possible to implement if you really want to.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ann Zen |
