From 5d7b5e915311465f027dcae6f85dd7f230ae266f Mon Sep 17 00:00:00 2001 From: chriskiehl Date: Thu, 7 Jan 2016 22:38:49 -0500 Subject: [PATCH] moved helpers to bottom of file --- gooey/gui/presenter.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/gooey/gui/presenter.py b/gooey/gui/presenter.py index 9cb01ca..3052279 100644 --- a/gooey/gui/presenter.py +++ b/gooey/gui/presenter.py @@ -121,15 +121,6 @@ class Presenter(object): def stop(self): self.client_runner.stop() - @staticmethod - def partition(collection, condition): - return filter(condition, collection), filter(lambda x: not condition(x), collection) - - def update_list(self, collection, new_values): - # convenience method for syncronizing the model -> widget list collections - for index, val in enumerate(new_values): - collection[index].value = val - def configuring(self): self.view.hide_all_buttons() self.view.hide('check_mark', 'running_img', 'error_symbol', 'runtime_display') @@ -155,3 +146,13 @@ class Presenter(object): self.view.show('error_symbol', 'edit_button', 'restart_button', 'close_button', 'runtime_display') self.view.Layout() + @staticmethod + def partition(collection, condition): + return filter(condition, collection), filter(lambda x: not condition(x), collection) + + def update_list(self, collection, new_values): + # convenience method for syncronizing the model -> widget list collections + for index, val in enumerate(new_values): + collection[index].value = val + +