Browse Source

Removed parameters being passed to Gooey in mock app.

pull/29/head
chriskiehl 10 years ago
parent
commit
dfd40fcaac
2 changed files with 4 additions and 3 deletions
  1. 5
      gooey/gui/advanced_config.py
  2. 2
      gooey/mockapplications/mockapp.py

5
gooey/gui/advanced_config.py

@ -7,6 +7,7 @@ Created on Dec 28, 2013
import wx
from wx.lib.scrolledpanel import ScrolledPanel
from gooey import i18n
from gooey.gui.component_factory import ComponentFactory
from gooey.gui.option_reader import OptionReader
import styling
@ -39,9 +40,9 @@ class AdvancedConfigPanel(ScrolledPanel, OptionReader):
def _init_components(self):
self._msg_req_args = (styling.H1(self, "Required Arguments")
self._msg_req_args = (styling.H1(self, i18n.translate("required_args_msg"))
if self._positionals else None)
self._msg_opt_args = styling.H1(self, "Optional Arguments")
self._msg_opt_args = styling.H1(self, i18n.translate("optional_args_msg"))
def _do_layout(self):
STD_LAYOUT = (0, wx.LEFT | wx.RIGHT | wx.EXPAND, PADDING)

2
gooey/mockapplications/mockapp.py

@ -12,7 +12,7 @@ from argparse import ArgumentParser
from gooey import Gooey
@Gooey(language='french')
@Gooey
def main():
my_cool_parser = ArgumentParser(description="Mock application to test Gooey's functionality")
my_cool_parser.add_argument("filename", help="Name of the file you want to read") # positional

Loading…
Cancel
Save