--- a/controls/VariablePanel.py Sat Aug 19 00:11:12 2017 +0300
+++ b/controls/VariablePanel.py Sat Aug 19 00:30:22 2017 +0300
@@ -50,9 +50,17 @@
def GetVariableTableColnames(location):
_ = NoTranslate
- if location:
- return ["#", _("Name"), _("Class"), _("Type"), _("Location"), _("Initial Value"), _("Option"), _("Documentation")]
- return ["#", _("Name"), _("Class"), _("Type"), _("Initial Value"), _("Option"), _("Documentation")]
+ cols = ["#",
+ _("Name"),
+ _("Class"),
+ _("Type"),
+ _("Location"),
+ _("Initial Value"),
+ _("Option"),
+ _("Documentation")]
+ if not location:
+ del cols[4] # remove 'Location' column
+ return cols
def GetOptions(constant=True, retain=True, non_retain=True):
--- a/editors/CodeFileEditor.py Sat Aug 19 00:11:12 2017 +0300
+++ b/editors/CodeFileEditor.py Sat Aug 19 00:30:22 2017 +0300
@@ -743,7 +743,13 @@
def GetVariableTableColnames(self):
_ = NoTranslate
- return ["#", _("Name"), _("Type"), _("Initial"), _("Description"), _("OnChange"), _("Options")]
+ return ["#",
+ _("Name"),
+ _("Type"),
+ _("Initial"),
+ _("Description"),
+ _("OnChange"),
+ _("Options")]
def RefreshModel(self):
self.Controler.SetVariables(self.Table.GetData())