This commit is contained in:
Xargana 2025-05-16 19:45:05 +03:00
parent 0fff2c1007
commit 20f30603fe

14
modules/base_module.py Normal file
View file

@ -0,0 +1,14 @@
# 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)