def draw(self, surface):
pass
- #surface.blit(self.surface, self.rect)
+ #surface.blit(self.surface, self.pos)
def draw(self, surface):
pass
- #surface.blit(self.surface, self.rect)
+ #surface.blit(self.surface, self.pos)
self.size = self.surface.get_rect().size
def draw(self, surface):
- surface.blit(self.surface, self.rect)
+ surface.blit(self.surface, self.pos)
class TextBoxWidget(TextWidget):
y_offset += 32
def draw(self, surface):
- surface.blit(self.surface, self.rect)
+ surface.blit(self.surface, self.pos)