From 0c0238ee20490be779cb4f68c516fb0194c0823a Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 6 Jan 2019 16:12:20 -0600 Subject: [PATCH] Added a base presenter class --- src/presenters/base.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/presenters/base.py 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