* fluent: General cleanup.
This commit is contained in:
@@ -87,9 +87,14 @@ class WorkflowView (gtk.VBox):
|
||||
exp.show()
|
||||
self.pack_start(exp, expand=False, fill=False)
|
||||
|
||||
def button_click_handler(self, button):
|
||||
function = button.function
|
||||
def run_function(self, function):
|
||||
logger.log('debug', 'Starting function: %s' % function.name)
|
||||
function.run(self.workflow.app.current_data)
|
||||
project = self.workflow.app.project
|
||||
new_data = function.run(project.current_data)
|
||||
if new_data != None:
|
||||
project.current_data = new_data
|
||||
logger.log('debug', 'Function ended: %s' % function.name)
|
||||
|
||||
def button_click_handler(self, button):
|
||||
self.run_function(function = button.function)
|
||||
|
||||
|
Reference in New Issue
Block a user