Browse Source

fix crash when using subparsers

switching view to a different subparser group crashed on this line because populate expects 2 arguments
pull/163/head
Simon O'Dwyer 8 years ago
parent
commit
f563636141
1 changed files with 2 additions and 2 deletions
  1. 4
      gooey/gui/presenter.py

4
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()

Loading…
Cancel
Save