# HG changeset patch # User Andrey Skvortsov # Date 1538223666 -10800 # Node ID e783c6beacf1e0c4de0811e77f4bed0ca3374012 # Parent 1c40e3976cc207a24bcfab3a9d4a68888d44538b clean etherlab: pep8, E211 whitespace before '[' diff -r 1c40e3976cc2 -r e783c6beacf1 etherlab/CommonEtherCATFunction.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() diff -r 1c40e3976cc2 -r e783c6beacf1 etherlab/EtherCATManagementEditor.py --- 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)