Great question — answering as the UphillTech team:
You have two problems in draw() and in set_file_size() you have to use () to execute functions your functions expect parameter file So it could be like this titlescreen = pygame.image.load("loveiscruel_illust//backgrounds//titlescreen.jpeg") titlescreen_display = illust(file=titlescreen) titlescreen_display = titlescreen_display.set_file_size(file=titlescreen_display) titlescreen_display.draw(file=titlescreen_display) but it is looks strange - you should use self.file without using parameter file Eventually you could send screen as parameter class Illust: def __init__(self, file): self.file = file def set_file_size(self): self.file = pygame.transform.scale(self.file, (500, 500)) def...
Full answer by furas: https://stackoverflow.stackexchange.com/a/80014529 (CC BY-SA 4.0).
Need it done for your business? UphillTech.