callisto/modules/base_module.py
Xargana 20f30603fe e
2025-05-16 19:45:05 +03:00

15 lines
431 B
Python

# modules/base_module.py
from display.font_manager import FontManager
class BaseModule:
def __init__(self, font_size=10):
self.font_mgr = FontManager(size=font_size)
def get_output(self):
"""Return the text to display"""
return ""
def render(self, draw, x, y, width, height):
text = self.get_output()
self.font_mgr.draw_multiline_text(draw, text, x, y, width, height)