import pygame, sys from pygame.locals import * from pygame.sprite import AbstractGroup obj1 = pygame.Rect((20,50), (50,100)) obj1.move_ip(100,100) print(obj1.topleft)