editors/Viewer.py
changeset 1671 0dc834721d8e
parent 1660 ccf2bcf66c70
child 1674 85e22d514c05
equal deleted inserted replaced
1670:cd03b8432541 1671:0dc834721d8e
  2544                     if input_connector.IsCompatible(
  2544                     if input_connector.IsCompatible(
  2545                             wire.GetStartConnectedType()):
  2545                             wire.GetStartConnectedType()):
  2546                         connector = input_connector
  2546                         connector = input_connector
  2547                         break
  2547                         break
  2548             self.AddNewElement(block, bbox, wire, connector)
  2548             self.AddNewElement(block, bbox, wire, connector)
       
  2549             self.RefreshVariablePanel()
       
  2550             self.ParentWindow.RefreshPouInstanceVariablesPanel()                    
  2549         dialog.Destroy()
  2551         dialog.Destroy()
  2550 
  2552 
  2551     def AddNewVariable(self, bbox, exclude_input=False, wire=None):
  2553     def AddNewVariable(self, bbox, exclude_input=False, wire=None):
  2552         dialog = FBDVariableDialog(self.ParentWindow, self.Controler, self.TagName, exclude_input)
  2554         dialog = FBDVariableDialog(self.ParentWindow, self.Controler, self.TagName, exclude_input)
  2553         dialog.SetPreviewFont(self.GetFont())
  2555         dialog.SetPreviewFont(self.GetFont())