Skip to content

Commit

Permalink
fix crash when using subparsers
Browse files Browse the repository at this point in the history
switching view to a different subparser group crashed on this line because populate expects 2 arguments
  • Loading branch information
sodwyer committed Jul 5, 2016
1 parent c9a0e1b commit f563636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gooey/gui/presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def redraw_from_model(self):
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()

Expand Down

0 comments on commit f563636

Please sign in to comment.