Browse Source

Fixing Exception

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\gooey\gui\footer.py", line 152, in OnStart
Button
    self._controller.OnStartButton(event, self)
  File "C:\Python27\lib\site-packages\gooey\gui\controller.py", line 52, in OnSt
artButton
    cmd_line_args = self._base.GetOptions()
  File "C:\Python27\lib\site-packages\gooey\gui\base_window.py", line 94, in Get
Options
    return self.config_panel.GetOptions()
  File "C:\Python27\lib\site-packages\gooey\gui\advanced_config.py", line 104, i
n GetOptions
    if c.GetValue() is not None]
  File "C:\Python27\lib\site-packages\gooey\gui\components.py", line 181, in Get
Value
    [self._action.option_strings[0],  # get the verbose copy if available
IndexError: list index out of range
pull/47/head
Adi Foulger 10 years ago
parent
commit
2898c1540e
1 changed files with 1 additions and 1 deletions
  1. 2
      gooey/gui/components.py

2
gooey/gui/components.py

@ -178,7 +178,7 @@ class Choice(AbstractComponent):
if self._widget.GetValue() == self._DEFAULT_VALUE:
return None
return ' '.join(
[self._action.option_strings[0], # get the verbose copy if available
[self._action.option_strings[0] if self._action.option_strings else '', # get the verbose copy if available
self._widget.GetValue()])
def BuildInputWidget(self, parent, action):

Loading…
Cancel
Save