def run_tool(self):
    wbt.set_working_dir(self.working_dir)
    args = []
    for widget in self.arg_scroll_frame.winfo_children():
        v = widget.get_value()
        if v:
            args.append(v)
        elif (not widget.optional):
            messagebox.showinfo('Error', 'Non-optional tool parameter not specified.')
            return
    self.print_line_to_output('')
    if (wbt.run_tool(self.tool_name, args, self.custom_callback) == 1):
        print('Error running {}'.format(self.tool_name))
    else:
        self.run_button['text'] = 'Run'
        self.progress_var.set(0)
        self.progress_label['text'] = 'Progress:'
        self.progress.update_idletasks()
def run_tool(self):
    wbt.set_working_dir(self.working_dir)
    args = []
    for widget in self.arg_scroll_frame.winfo_children():
        v = widget.get_value()
        if v:
            args.append(v)
        elif (not widget.optional):
            messagebox.showinfo('Error', 'Non-optional tool parameter not specified.')
            return
    self.print_line_to_output()
    if (wbt.run_tool(self.tool_name, args, self.custom_callback) == 1):
        print('Error running {}'.format(self.tool_name))
    else:
        self.run_button['text'] = 'Run'
        self.progress_var.set(0)
        self.progress_label['text'] = 'Progress:'
        self.progress.update_idletasks()