Пример #1
0
 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
Пример #2
0
 def render(self, screen, x_offset, y_offset):
     Widget.render(self, screen, x_offset, y_offset)
     Div.render(self, screen, x_offset, y_offset)