From 782d24237fe964ca388f642a7b6bb57f45594446 Mon Sep 17 00:00:00 2001 From: Alexander Gordeyev Date: Thu, 5 Nov 2015 20:53:16 +0300 Subject: [PATCH] quote subparser name --- gooey/gui/windows/layouts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gooey/gui/windows/layouts.py b/gooey/gui/windows/layouts.py index d528141..ae8deca 100644 --- a/gooey/gui/windows/layouts.py +++ b/gooey/gui/windows/layouts.py @@ -6,6 +6,8 @@ from gooey.gui import events from gooey.gui.windows.advanced_config import ConfigPanel from gooey.gui.windows.sidebar import Sidebar from gooey.gui.util import wx_util +from gooey.gui.util.quoting import quote + basic_config = { 'required': [{ @@ -77,7 +79,7 @@ class ColumnLayout(wx.Panel): return panels def GetOptions(self): - return '{} {}'.format(self.active_panel, self.config_panels[self.active_panel].GetOptions()) + return '{} {}'.format(quote(self.active_panel), self.config_panels[self.active_panel].GetOptions()) def GetRequiredArgs(self): return self.config_panels[self.active_panel].GetRequiredArgs()