Skip to content
Advertisement

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:

SVG rendering in a PyGame application. Prior to Pygame 2.0, Pygame did not support SVG. Then how did you load it?

In a pyGame application, I would like to render resolution-free GUI widgets described in SVG. How can I achieve this? (I like the OCEMP GUI toolkit but it seems to be bitmap dependent for its rendering) Answer This is a complete example which combines hints by other people here. It should render a file called test.svg from the current directory.

Advertisement