editors/TextViewer.py
changeset 1406 82db84fe88ea
parent 1347 533741e5075c
child 1409 48f5f2a622c8
equal deleted inserted replaced
1405:0b9cd761a356 1406:82db84fe88ea
   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("")