Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make a resizable pygame window

import pygame

surface = pygame.display.set_mode((350, 250), pygame.RESIZABLE)

for event in pygame.event.get():
	if event.type == pygame.VIDEORESIZE:
      surface = pygame.display.set_mode((event.w, event.h), pygame.RESIZABLE)
 
PREVIOUS NEXT
Tagged: #resizable #pygame #window
ADD COMMENT
Topic
Name
4+1 =