. , .
, . . , ", engine.py script, , Pygame ! settings.py, Pygame engine.py main.py".
engine.py, main.py? - :
...
class ClassWithDraw(Subclass):
def __init__(self, draw_callback):
...
self._draw_func = draw_callback
...
def draw(self):
self._draw_func()
from engine import ClassWithDraw
drawer = ClassWithDraw(drawfunc)
, , : . , draw; draw_hook, , , .
, Pygame. Pygame, , , , , Pygame. , main , .