Browse Source

Fix build.conf typo; fix basic_layout json structure

pull/138/merge
chriskiehl 9 years ago
parent
commit
cfdfda37a3
2 changed files with 5 additions and 4 deletions
  1. 5
      gooey/gui/windows/layouts.py
  2. 4
      gooey/python_bindings/config_generator.py

5
gooey/gui/windows/layouts.py

@ -10,17 +10,18 @@ from gooey.gui.util.quoting import quote
basic_config = {
'required': [{
'widgets': [{
'type': 'CommandField',
'required': True,
'data': {
'display_name': 'Enter Commands',
'help': 'Enter command line arguments',
'nargs': '',
'commands': '',
'choices': [],
'default': None,
}
}],
'optional': []
}

4
gooey/python_bindings/config_generator.py

@ -19,12 +19,12 @@ def create_from_parser(parser, source_path, **kwargs):
'program_name': kwargs.get('program_name') or os.path.basename(sys.argv[0]).replace('.py', ''),
'program_description': kwargs.get('program_description', ''),
'show_config': show_config,
'show_advanced': kwargs.get('show_advanced', True),
'show_advanced': kwargs.get('advanced', True),
'default_size': kwargs.get('default_size', (610, 530)),
'num_required_cols': kwargs.get('required_cols', 1),
'num_optional_cols': kwargs.get('optional_cols', 3),
'manual_start': False,
'layout_type': 'column',
'layout_type': 'flat',
'monospace_display': kwargs.get('monospace_display', False),
'image_dir': kwargs.get('image_dir'),
'language_dir': kwargs.get('language_dir'),

Loading…
Cancel
Save