diff --git a/gooey/gui/presenter.py b/gooey/gui/presenter.py index 77eaa9f..a932491 100644 --- a/gooey/gui/presenter.py +++ b/gooey/gui/presenter.py @@ -6,6 +6,7 @@ from gooey.gui.pubsub import pub from gooey.gui import events from gooey.gui.windows import layouts +import wx class Presenter(object): def __init__(self, view, model): @@ -70,6 +71,11 @@ class Presenter(object): self.syncronize_from_model() def syncronize_from_model(self): + #TODO move this out of the presenter + #TODO Make all view interactions thread safe + wx.CallAfter(self.syncronize_from_model_async) + + def syncronize_from_model_async(self): # update heading titles self.view.heading_title = self.model.heading_title self.view.heading_subtitle = self.model.heading_subtitle