21 lines
537 B
Python

from marshmallow import Schema, fields
from kivy.event import EventDispatcher
from kivy.properties import BooleanProperty
class BaseModule(EventDispatcher):
ConfigSchema = None
enabled = BooleanProperty(True)
finished = BooleanProperty(False)
def __init__(self, parent, config):
self.parent = parent
if self.ConfigSchema:
self.config = self.ConfigSchema().load(config)
print(self.config)
else:
self.config = config
def build(self, parent):
pass