689 if isinstance(self.SelectedElement, SFC_Step) and not self.SelectedElement.Output: |
689 if isinstance(self.SelectedElement, SFC_Step) and not self.SelectedElement.Output: |
690 choices = [] |
690 choices = [] |
691 for block in self.Blocks: |
691 for block in self.Blocks: |
692 if isinstance(block, SFC_Step): |
692 if isinstance(block, SFC_Step): |
693 choices.append(block.GetName()) |
693 choices.append(block.GetName()) |
694 dialog = wx.SingleChoiceDialog(self.ParentWindow, _("Add a new jump"), _("Please choose a target"), choices, wx.OK|wx.CANCEL) |
694 dialog = wx.SingleChoiceDialog(self.ParentWindow, |
|
695 _("Add a new jump"), _("Please choose a target"), |
|
696 choices, wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL) |
695 if dialog.ShowModal() == wx.ID_OK: |
697 if dialog.ShowModal() == wx.ID_OK: |
696 value = dialog.GetStringSelection() |
698 value = dialog.GetStringSelection() |
697 self.SelectedElement.AddOutput() |
699 self.SelectedElement.AddOutput() |
698 self.RefreshStepModel(self.SelectedElement) |
700 self.RefreshStepModel(self.SelectedElement) |
699 step_connectors = self.SelectedElement.GetConnectors() |
701 step_connectors = self.SelectedElement.GetConnectors() |