--- a/editors/Viewer.py Wed Aug 16 12:48:08 2017 +0300
+++ b/editors/Viewer.py Wed Aug 16 12:53:23 2017 +0300
@@ -1589,6 +1589,7 @@
def GetForceVariableMenuFunction(self, iec_path, element):
iec_type = self.GetDataType(iec_path)
+
def ForceVariableFunction(event):
if iec_type is not None:
dialog = ForceVariableDialog(self.ParentWindow, iec_type, str(element.GetValue()))
@@ -1936,6 +1937,7 @@
def GetAddToWireMenuCallBack(self, func, *args):
args += (self.SelectedElement,)
+
def AddToWireMenuCallBack(event):
func(wx.Rect(0, 0, 0, 0), *args)
return AddToWireMenuCallBack