--- a/etherlab/CommonEtherCATFunction.py Sat Sep 29 15:21:06 2018 +0300
+++ b/etherlab/CommonEtherCATFunction.py Sat Sep 29 15:24:07 2018 +0300
@@ -258,8 +258,8 @@
def BackupSDODataSet(self):
Back-up current SDO entry information to restore the SDO data
- in case that the user cancels SDO update operation.
+ in case that the user cancels SDO update operation. self.BackupDatatypeDescription = self.SaveDatatypeDescription
self.BackupCommunicationObject = self.SaveCommunicationObject
self.BackupManufacturerSpecific = self.SaveManufacturerSpecific
--- a/etherlab/EtherCATManagementEditor.py Sat Sep 29 15:21:06 2018 +0300
+++ b/etherlab/EtherCATManagementEditor.py Sat Sep 29 15:24:07 2018 +0300
@@ -1453,10 +1453,10 @@
class RegisterAccessPanel(wx.Panel):
def __init__(self, parent, controler):
- @param parent: EEPROMAccessPanel object
- @param controler: _EthercatSlaveCTN class in EthercatSlave.py
+ @param parent: EEPROMAccessPanel object + @param controler: _EthercatSlaveCTN class in EthercatSlave.py self.Controler = controler
@@ -1494,8 +1494,8 @@
@@ -1868,7 +1868,7 @@
@param parent: RegisterAccessPanel object
@param controler: _EthercatSlaveCTN class in EthercatSlave.py
@param row, col: size of the table
wx.Panel.__init__(self, parent, -1)
@@ -1898,7 +1898,7 @@
@param low_index: the lowest index of the page
@param high_index: the highest index of the page
self.MainTable = RegisterMainTable(self, row, col, self.Controler)
self.Sizer.Detach(self.SubTable)
@@ -1914,7 +1914,7 @@
It's done by deleting the sub table and creating it again.
@param row, col: size of the table
self.SubTable = RegisterSubTable(self, row, col)
self.Sizer.Detach(self.MainTable)
@@ -1932,11 +1932,11 @@
class RegisterMainTable(wx.grid.Grid):
def __init__(self, parent, row, col, controler):
- @param parent: RegisterNotebook object
- @param row, col: size of the table
- @param controler: _EthercatSlaveCTN class in EthercatSlave.py
+ @param parent: RegisterNotebook object + @param row, col: size of the table + @param controler: _EthercatSlaveCTN class in EthercatSlave.py @@ -1954,12 +1954,12 @@
def SetValue(self, parent, reg_monitor_data, low_index, high_index):
- Set the RegMonitorData into the main table.
- @param parent: RegisterNotebook object
- @param reg_monitor_data: data
- @param low_index: the lowest index of the page
- @param high_index: the highest index of the page
+ Set the RegMonitorData into the main table. + @param parent: RegisterNotebook object + @param reg_monitor_data: data + @param low_index: the lowest index of the page + @param high_index: the highest index of the page self.RegMonitorData = reg_monitor_data
# set label name and size
@@ -1989,9 +1989,9 @@
def OnSelectCell(self, event):
- Handles the event of the cell of the main table.
- @param event: gridlib object (left click)
+ Handles the event of the cell of the main table. + @param event: gridlib object (left click) # if reg_monitor_data is 0, it is initialization of register access.
if self.RegMonitorData == 0:
@@ -2033,7 +2033,7 @@
Handle the event of the cell of the main table.
Display the window where the user modifies the value of the cell.
@param event: gridlib object (double click)
# user can enter a value in case that user double-clicked 'Dec' or 'Hex' value.
if event.GetCol() == 1 or event.GetCol() == 2:
dlg = wx.TextEntryDialog(self, "Enter hex(0xnnnn) or dec(n) value",
@@ -2083,10 +2083,10 @@
class RegisterSubTable(wx.grid.Grid):
def __init__(self, parent, row, col):
- @param parent: RegisterNotebook object
- @param row, col: size of the table
+ @param parent: RegisterNotebook object + @param row, col: size of the table @@ -2097,10 +2097,10 @@
def SetValue(self, parent, data):
- Set the data into the subtable.
- @param parent: RegisterNotebook object
+ Set the data into the subtable. + @param parent: RegisterNotebook object # lset label name and size
Register_SubTable_Label = [(0, "Bits"), (1, "Name"),
(2, "Value"), (3, "Enum")]