--- 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,
- wx.OK | wx.ICON_INFORMATION)
+ dlg = wx.MessageDialog(app_frame, mention, + wx.OK | wx.ICON_INFORMATION) --- 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( + _("Enter hex or dec value (if enter dec value, it automatically conversed hex value)"), + style=wx.OK | wx.CANCEL) start_value = self.GetCellValue(event.GetRow(), event.GetCol())
dlg.SetValue(start_value)