equal
deleted
inserted
replaced
477 dialog.Destroy() |
477 dialog.Destroy() |
478 |
478 |
479 def AddDivergence(self): |
479 def AddDivergence(self): |
480 if self.SelectedElement in self.Wires or isinstance(self.SelectedElement, Graphic_Group) or isinstance(self.SelectedElement, SFC_Step): |
480 if self.SelectedElement in self.Wires or isinstance(self.SelectedElement, Graphic_Group) or isinstance(self.SelectedElement, SFC_Step): |
481 dialog = DivergenceCreateDialog(self.ParentWindow) |
481 dialog = DivergenceCreateDialog(self.ParentWindow) |
|
482 dialog.SetPreviewFont(self.GetFont()) |
482 if dialog.ShowModal() == wx.ID_OK: |
483 if dialog.ShowModal() == wx.ID_OK: |
483 value = dialog.GetValues() |
484 value = dialog.GetValues() |
484 if value["type"] == SELECTION_DIVERGENCE: |
485 if value["type"] == SELECTION_DIVERGENCE: |
485 if self.SelectedElement in self.Wires and isinstance(self.SelectedElement.EndConnected.GetParentBlock(), SFC_Step): |
486 if self.SelectedElement in self.Wires and isinstance(self.SelectedElement.EndConnected.GetParentBlock(), SFC_Step): |
486 self.SelectedElement.SetSelectedSegment(None) |
487 self.SelectedElement.SetSelectedSegment(None) |