editors/SFCViewer.py
changeset 1768 691083b5682a
parent 1767 c74815729afd
child 1782 5b6ad7a7fd9d
--- a/editors/SFCViewer.py	Fri Aug 18 12:36:31 2017 +0300
+++ b/editors/SFCViewer.py	Fri Aug 18 20:14:38 2017 +0300
@@ -767,8 +767,10 @@
                 if isinstance(block, SFC_Step):
                     choices.append(block.GetName())
             dialog = wx.SingleChoiceDialog(self.ParentWindow,
-                  _("Add a new jump"), _("Please choose a target"),
-                  choices, wx.DEFAULT_DIALOG_STYLE | wx.OK | wx.CANCEL)
+                                           _("Add a new jump"),
+                                           _("Please choose a target"),
+                                           choices,
+                                           wx.DEFAULT_DIALOG_STYLE | wx.OK | wx.CANCEL)
             if dialog.ShowModal() == wx.ID_OK:
                 value = dialog.GetStringSelection()
                 self.SelectedElement.AddOutput()
@@ -980,7 +982,7 @@
                     wire_size = GetWireSize(previous_block)
                     previous_block.RefreshOutputPosition((0, previous_pos.y + wire_size - next_pos.y))
                     wire.SetPoints([wx.Point(previous_pos.x, previous_pos.y + wire_size),
-                        wx.Point(previous_pos.x, previous_pos.y)])
+                                    wx.Point(previous_pos.x, previous_pos.y)])
                     if isinstance(next_block, SFC_Divergence):
                         next_block.RefreshPosition()
                     previous_block.RefreshOutputModel(True)
@@ -1010,7 +1012,7 @@
                 wire_size = GetWireSize(previous_block)
                 previous_block.RefreshOutputPosition((previous_pos.x - next_pos.x, previous_pos.y + wire_size - next_pos.y))
                 wire.SetPoints([wx.Point(previous_pos.x, previous_pos.y + wire_size),
-                    wx.Point(previous_pos.x, previous_pos.y)])
+                                wx.Point(previous_pos.x, previous_pos.y)])
                 if isinstance(next_block, SFC_Divergence):
                     next_block.RefreshPosition()
                 previous_block.RefreshOutputModel(True)