import pygame.locals as pgl
from naja.constants import PLAYER_SIZE, BIT_SIZE, TILE_SIZE, BITS, ACT, KEYS
import pygame.locals as pgl
from naja.constants import PLAYER_SIZE, BIT_SIZE, TILE_SIZE, BITS, ACT, KEYS
from naja.resources import resources
from naja.resources.mutators import EIGHT_BIT
from naja.widgets.base import Widget
from naja.resources import resources
from naja.resources.mutators import EIGHT_BIT
from naja.widgets.base import Widget
if ev.key in (pgl.K_SPACE,):
self.state.gameboard.change_mode()
return finish_event()
if ev.key in (pgl.K_SPACE,):
self.state.gameboard.change_mode()
return finish_event()