2 Widget that holds the games's bits.
7 from naja.constants import BIT_SIZE, BITS
8 from naja.widgets.base import Widget
11 class GameBitsWidget(Widget):
13 Widget which holds the game's bits.
15 def __init__(self, pos, state):
16 super(GameBitsWidget, self).__init__(pos, BIT_SIZE)
20 self.surface = pygame.Surface(BIT_SIZE)
22 def draw(self, surface):
23 surface.blit(self.surface, self.pos)