equal
deleted
inserted
replaced
311 location = "%M" + location |
311 location = "%M" + location |
312 if values[2] is not None: |
312 if values[2] is not None: |
313 var_type = values[2] |
313 var_type = values[2] |
314 else: |
314 else: |
315 var_type = LOCATIONDATATYPES.get(location[2], ["BOOL"])[0] |
315 var_type = LOCATIONDATATYPES.get(location[2], ["BOOL"])[0] |
316 self.Controler.AddEditedElementPouVar(self.TagName, var_type, var_name, location, values[4]) |
316 self.Controler.AddEditedElementPouVar(self.TagName, |
|
317 var_type, var_name, |
|
318 location=location, description=values[4]) |
317 self.RefreshVariablePanel() |
319 self.RefreshVariablePanel() |
318 self.RefreshVariableTree() |
320 self.RefreshVariableTree() |
319 event.SetDragText(var_name) |
321 event.SetDragText(var_name) |
320 else: |
322 else: |
321 event.SetDragText("") |
323 event.SetDragText("") |