diff --git a/src/presenters/base.py b/src/presenters/base.py new file mode 100644 index 0000000..bdc1f46 --- /dev/null +++ b/src/presenters/base.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals +from pubsub import pub +from interactors import configuration as interactor + +class basePresenter(object): + + def __init__(self, view, interactor, modulename): + self.interactor = interactor + self.view = view + self.interactor.install(view=view, presenter=self, modulename=modulename) + + def run(self): + self.interactor.start() + self.interactor.uninstall() \ No newline at end of file