mirror of https://git.sr.ht/~michalr/menu
17 lines
322 B
Python
17 lines
322 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):
|
||
|
raise NotImplementedError()
|
||
|
|
||
|
@abstractmethod
|
||
|
def handle_event(self, event: Event):
|
||
|
raise NotImplementedError()
|