Posts by REIGN • 53 points
3 posts
-
2
votes1
answer225
viewsQ: Problems with PEP8 indentation rules
I’m using the autopep8 extension in sublime text 3 and it suggests to me that the following line looks like this: self.buttons = [Button(self.fonts["alfa_slab_one_regular_40"], "JOGAR",…
-
2
votes1
answer70
viewsQ: How to pass Keywords Arguments in python in a simpler way?
I’m trying to create the class button and trying to get the arguments I can pass pro rect, only if some argument is None and I pass for example self.rect = pygame.Rect(x=x) and the x for None of…
-
1
votes1
answer65
viewsQ: Is it a problem to use pygame.image.load() multiple times?
I’m creating a class called Button, and one of the properties of this class is an image. I wanted to know if you have a problem, if within this class I used self.imagem = pygame.image.load() not…