1
0
Fork 0
menu/iboard.py

17 lines
342 B
Python

#!/usr/bin/env python3
from abc import abstractmethod
from pygame import Surface
from pygame.event import Event
class IBoard:
@abstractmethod
def draw(self, screen: Surface, force_redraw: bool):
raise NotImplementedError()
@abstractmethod
def handle_event(self, event: Event):
raise NotImplementedError()