From f5636361414657b9afce412e08d472bc9260f7ef Mon Sep 17 00:00:00 2001 From: Simon O'Dwyer Date: Tue, 5 Jul 2016 13:08:36 +0200 Subject: [PATCH] fix crash when using subparsers switching view to a different subparser group crashed on this line because populate expects 2 arguments --- gooey/gui/presenter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gooey/gui/presenter.py b/gooey/gui/presenter.py index 474abe7..dee3f39 100644 --- a/gooey/gui/presenter.py +++ b/gooey/gui/presenter.py @@ -93,8 +93,8 @@ class Presenter(object): self.view.freeze() self.view.required_section.clear() self.view.optional_section.clear() - self.view.required_section.populate(self.model.required_args) - self.view.optional_section.populate(self.model.optional_args) + self.view.required_section.populate(self.model.required_args, self.model.num_required_cols) + self.view.optional_section.populate(self.model.optional_args, self.model.num_optional_cols) getattr(self, self.model.current_state)() self.view.thaw()