clean etherlab: pep8, E211 whitespace before '['
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sat, 29 Sep 2018 15:21:06 +0300
changeset 2382 e783c6beacf1
parent 2381 1c40e3976cc2
child 2383 6cc3460be285
clean etherlab: pep8, E211 whitespace before '['
etherlab/CommonEtherCATFunction.py
etherlab/EtherCATManagementEditor.py
--- a/etherlab/CommonEtherCATFunction.py	Sat Sep 29 15:16:21 2018 +0300
+++ b/etherlab/CommonEtherCATFunction.py	Sat Sep 29 15:21:06 2018 +0300
@@ -1588,8 +1588,8 @@
         @param mention : Error String
         """
         app_frame = self.Controler.GetCTRoot().AppFrame
-        dlg = wx.MessageDialog (app_frame, mention,
-                                ' Warning...',
-                                wx.OK | wx.ICON_INFORMATION)
+        dlg = wx.MessageDialog(app_frame, mention,
+                               ' Warning...',
+                               wx.OK | wx.ICON_INFORMATION)
         dlg.ShowModal()
         dlg.Destroy()
--- a/etherlab/EtherCATManagementEditor.py	Sat Sep 29 15:16:21 2018 +0300
+++ b/etherlab/EtherCATManagementEditor.py	Sat Sep 29 15:21:06 2018 +0300
@@ -643,7 +643,7 @@
         self.Controler.CommonMethod.Check_SAFEOP = False
         self.Controler.CommonMethod.Check_OP = False
 
-    def SDOModifyDialog (self, event):
+    def SDOModifyDialog(self, event):
         """
         Create dialog for SDO value modify
         if user enter data, perform command "ethercat download"
@@ -653,8 +653,11 @@
 
         # CheckSDODataAccess is checking that OD(Object Dictionary) has "w"
         if event.GetCol() == 7 and self.CheckSDODataAccess(event.GetRow()):
-            dlg = wx.TextEntryDialog (self, "Enter hex or dec value (if enter dec value, it automatically conversed hex value)",
-                                      "SDOModifyDialog", style=wx.OK | wx.CANCEL)
+            dlg = wx.TextEntryDialog(
+                self,
+                _("Enter hex or dec value (if enter dec value, it automatically conversed hex value)"),
+                "SDOModifyDialog",
+                style=wx.OK | wx.CANCEL)
 
             start_value = self.GetCellValue(event.GetRow(), event.GetCol())
             dlg.SetValue(start_value)