Skip to content

Tag: pygame

Allowing resizing window pyGame

I am trying to allow resizing for this app, I put the RESIZABLE flag, but when I try to resize, it messes up! Try my code. It is a grid program, when the window resizes I want the grid to also resize/shrink. Please tell me whats wrong, thanks. Answer You are not updating your width, height, or size when the

pygame – How to display text with font & color?

Is there a way I can display text on a pygame window using python? I need to display a bunch of live information that updates and would rather not make an image for each character I need. Can I blit text to the screen? Answer Yes. It is possible to draw text in pygame: