def __init__(self, ingame, width, height): Widget.__init__(self, width, height, focusable=False) self.ingame = ingame self.s = pygame.Surface((width, height), SRCALPHA, 32) self.image = Image(self.s) self.pitch_surface = None self.line_width = width / 100
def render(self, screen, x_offset, y_offset): Widget.render(self, screen, x_offset, y_offset) Div.render(self, screen, x_offset, y_offset)