Widget that holds the games's bits.
"""
-from naja.constants import BIT_SIZE
+import pygame
+
+from naja.constants import BIT_SIZE, BITS
from naja.widgets.base import Widget
"""
Widget which holds the game's bits.
"""
- def __init__(self, pos, image=None):
+ def __init__(self, pos, state):
super(GameBitsWidget, self).__init__(pos, BIT_SIZE)
+ self.state = state
def prepare(self):
- pass
+ self.surface = pygame.Surface(BIT_SIZE)
def draw(self, surface):
- pass
- #surface.blit(self.surface, self.pos)
+ surface.blit(self.surface, self.pos)