--- a/controls/VariablePanel.py Wed May 29 00:11:27 2013 +0200
+++ b/controls/VariablePanel.py Wed May 29 11:08:00 2013 +0900
@@ -42,15 +42,15 @@
#-------------------------------------------------------------------------------
-def AppendMenu(parent, help, id, kind, text):
- if wx.VERSION >= (2, 6, 0):
- parent.Append(help=help, id=id, kind=kind, text=text)
- parent.Append(helpString=help, id=id, kind=kind, item=text)
+def AppendMenu(parent, help, id, kind, text): + if wx.VERSION >= (2, 6, 0): + parent.Append(help=help, id=id, kind=kind, text=text) + parent.Append(helpString=help, id=id, kind=kind, item=text) [TITLE, EDITORTOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, PROJECTTREE,
POUINSTANCEVARIABLESPANEL, LIBRARYTREE, SCALING, PAGETITLES
def GetVariableTableColnames(location):
@@ -536,7 +536,9 @@
name = row_content["Name"]
if row_content is not None and row_content["Edit"]:
row_content = self.Values[new_row - 1].copy()
@@ -716,7 +718,7 @@
self.Controler.UpdateEditedElementUsedVariable(self.TagName, old_value, value)
self.Controler.BufferProject()
- wx.CallAfter(self.ParentWindow.RefreshView, False)
+ wx.CallAfter(self.ParentWindow.RefreshView, False) self.ParentWindow._Refresh(TITLE, FILEMENU, EDITMENU, PAGETITLES, POUINSTANCEVARIABLESPANEL, LIBRARYTREE)
@@ -860,7 +862,7 @@
self.Controler.SetPouInterfaceVars(words[1], self.Values)
self.Controler.BufferProject()
- self.ParentWindow._Refresh(TITLE, FILEMENU, EDITMENU, PAGETITLES, POUINSTANCEVARIABLESPANEL, LIBRARYTREE)
+ self.ParentWindow._Refresh(TITLE, FILEMENU, EDITMENU, PAGETITLES, POUINSTANCEVARIABLESPANEL, LIBRARYTREE) #-------------------------------------------------------------------------------
# Highlights showing functions