

def __init__(self, view, model):
    self.view = view
    self.model = model
    self.client_runner = ProcessController(self.model.progress_regex, self.model.progress_expr)
    pub.subscribe(self.on_cancel, events.WINDOW_CANCEL)
    pub.subscribe(self.on_stop, events.WINDOW_STOP)
    pub.subscribe(self.on_start, events.WINDOW_START)
    pub.subscribe(self.on_restart, events.WINDOW_RESTART)
    pub.subscribe(self.on_edit, events.WINDOW_EDIT)
    pub.subscribe(self.on_close, events.WINDOW_CLOSE)
    pub.subscribe(self.on_new_message, 'console_update')
    pub.subscribe(self.on_progress_change, 'progress_update')
    pub.subscribe(self.on_client_done, 'execution_complete')
    pub.subscribe(self.on_selection_change, events.LIST_BOX)

dataset/ETHPy150Open chriskiehl/Gooey/gooey/gui/presenter.py Presenter.__init__/original