mirror of https://git.sr.ht/~michalr/menu
17 lines
342 B
Python
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()
|