editors/SFCViewer.py
changeset 1865 0bd5b3099144
parent 1853 47a3f39bead0
child 1872 866fb3ab8778
equal deleted inserted replaced
1864:9e64afb38963 1865:0bd5b3099144
   535                     self.Refresh(False)
   535                     self.Refresh(False)
   536                 dialog.Destroy()
   536                 dialog.Destroy()
   537 
   537 
   538     def AddDivergence(self):
   538     def AddDivergence(self):
   539         if self.SelectedElement in self.Wires or isinstance(self.SelectedElement, Graphic_Group) or isinstance(self.SelectedElement, SFC_Step):
   539         if self.SelectedElement in self.Wires or isinstance(self.SelectedElement, Graphic_Group) or isinstance(self.SelectedElement, SFC_Step):
   540             dialog = SFCDivergenceDialog(self.ParentWindow)
   540             dialog = SFCDivergenceDialog(self.ParentWindow, self.Controler, self.TagName)
   541             dialog.SetPreviewFont(self.GetFont())
   541             dialog.SetPreviewFont(self.GetFont())
   542             if dialog.ShowModal() == wx.ID_OK:
   542             if dialog.ShowModal() == wx.ID_OK:
   543                 value = dialog.GetValues()
   543                 value = dialog.GetValues()
   544                 if value["type"] == SELECTION_DIVERGENCE:
   544                 if value["type"] == SELECTION_DIVERGENCE:
   545                     if self.SelectedElement in self.Wires and isinstance(self.SelectedElement.EndConnected.GetParentBlock(), SFC_Step):
   545                     if self.SelectedElement in self.Wires and isinstance(self.SelectedElement.EndConnected.GetParentBlock(), SFC_Step):