editors/Viewer.py
changeset 1745 f9d32913bad4
parent 1744 69dfdb26f600
child 1747 6046ffa2280f
--- a/editors/Viewer.py	Tue Aug 15 22:38:43 2017 +0300
+++ b/editors/Viewer.py	Wed Aug 16 11:47:27 2017 +0300
@@ -302,7 +302,7 @@
                         dialog = wx.SingleChoiceDialog(self.ParentWindow.ParentWindow,
                               _("Select a variable class:"), _("Variable class"),
                               [_("Input"), _("Output"), _("Memory")],
-                              wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL)
+                              wx.DEFAULT_DIALOG_STYLE | wx.OK | wx.CANCEL)
                         if dialog.ShowModal() == wx.ID_OK:
                             selected = dialog.GetSelection()
                         else:
@@ -435,7 +435,7 @@
         return AddVariableFunction
 
     def ShowMessage(self, message):
-        message = wx.MessageDialog(self.ParentWindow, message, _("Error"), wx.OK|wx.ICON_ERROR)
+        message = wx.MessageDialog(self.ParentWindow, message, _("Error"), wx.OK | wx.ICON_ERROR)
         message.ShowModal()
         message.Destroy()
 
@@ -2637,7 +2637,7 @@
         dialog = wx.TextEntryDialog(self.ParentWindow,
                                     _("Edit comment"),
                                     _("Please enter comment text"),
-                                    "", wx.OK|wx.CANCEL|wx.TE_MULTILINE)
+                                    "", wx.OK | wx.CANCEL | wx.TE_MULTILINE)
         dialog.SetClientSize(wx.Size(400, 200))
         if dialog.ShowModal() == wx.ID_OK:
             value = dialog.GetValue()
@@ -2767,7 +2767,7 @@
                 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)
+              choices, wx.DEFAULT_DIALOG_STYLE | wx.OK | wx.CANCEL)
         if dialog.ShowModal() == wx.ID_OK:
             id = self.GetNewId()
             jump = SFC_Jump(self, dialog.GetStringSelection(), id)
@@ -3033,7 +3033,7 @@
                 choices.append(block.GetName())
         dialog = wx.SingleChoiceDialog(self.ParentWindow,
               _("Edit jump target"), _("Please choose a target"),
-              choices, wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL)
+              choices, wx.DEFAULT_DIALOG_STYLE | wx.OK | wx.CANCEL)
         try:
             indx = choices.index(jump.GetTarget())
             dialog.SetSelection(indx)
@@ -3076,7 +3076,7 @@
                                     _("Edit comment"),
                                     _("Please enter comment text"),
                                     comment.GetContent(),
-                                    wx.OK|wx.CANCEL|wx.TE_MULTILINE)
+                                    wx.OK | wx.CANCEL | wx.TE_MULTILINE)
         width, height = comment.GetSize()
         dialogSize = wx.Size(max(width + 30, 400), max(height + 60, 200))
         dialog.SetClientSize(dialogSize)
@@ -3438,7 +3438,7 @@
                 self.RefreshVariablePanel()
                 self.ParentWindow.RefreshPouInstanceVariablesPanel()
             else:
-                message = wx.MessageDialog(self.Editor, result, "Error", wx.OK|wx.ICON_ERROR)
+                message = wx.MessageDialog(self.Editor, result, "Error", wx.OK | wx.ICON_ERROR)
                 message.ShowModal()
                 message.Destroy()