import pygame object1 = pygame.Rect((20, 50), (50, 100)) object1.update((30, 30), (50, 50)) print(object1.topleft) print(object1.size)