|
@ -12,12 +12,6 @@ from gooey.gui.component_factory import ComponentFactory |
|
|
import i18n |
|
|
import i18n |
|
|
import i18n_config |
|
|
import i18n_config |
|
|
import source_parser |
|
|
import source_parser |
|
|
from gooey.gui.client_app import ClientApp |
|
|
|
|
|
from gooey.gui.client_app import EmptyClientApp |
|
|
|
|
|
from gooey.gui.base_window import BaseWindow |
|
|
|
|
|
from gooey.gui.advanced_config import AdvancedConfigPanel |
|
|
|
|
|
from gooey.gui.basic_config_panel import BasicConfigPanel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def Gooey(f=None, advanced=True, |
|
|
def Gooey(f=None, advanced=True, |
|
|
language='english', config=True, |
|
|
language='english', config=True, |
|
@ -42,6 +36,13 @@ def Gooey(f=None, advanced=True, |
|
|
|
|
|
|
|
|
i18n.load(language) |
|
|
i18n.load(language) |
|
|
|
|
|
|
|
|
|
|
|
# load gui components after loading the language pack |
|
|
|
|
|
from gooey.gui.client_app import ClientApp |
|
|
|
|
|
from gooey.gui.client_app import EmptyClientApp |
|
|
|
|
|
from gooey.gui.base_window import BaseWindow |
|
|
|
|
|
from gooey.gui.advanced_config import AdvancedConfigPanel |
|
|
|
|
|
from gooey.gui.basic_config_panel import BasicConfigPanel |
|
|
|
|
|
|
|
|
if config: |
|
|
if config: |
|
|
parser = get_parser(module_path) |
|
|
parser = get_parser(module_path) |
|
|
client_app = ClientApp(parser, payload) |
|
|
client_app = ClientApp(parser, payload) |
|
|