clean etherlab: pep8, W191 indentation contains tabs
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sat, 29 Sep 2018 15:24:07 +0300
changeset 2383 6cc3460be285
parent 2382 e783c6beacf1
child 2384 d7d9f0e60bc9
clean etherlab: pep8, W191 indentation contains tabs
etherlab/CommonEtherCATFunction.py
etherlab/EtherCATManagementEditor.py
--- 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):
         """
-	    Constructor
-	    @param parent: EEPROMAccessPanel object
-	    @param controler: _EthercatSlaveCTN class in EthercatSlave.py
-	    """
+        Constructor
+        @param parent: EEPROMAccessPanel object
+        @param controler: _EthercatSlaveCTN class in EthercatSlave.py
+        """
         self.parent = parent
         self.Controler = controler
         self.__init_data()
@@ -1494,8 +1494,8 @@
 
     def __init_data(self):
         """
-	    Declare initial data.
-	    """
+        Declare initial data.
+        """
         # flag for compact view
         self.CompactFlag = False
 
@@ -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)
 
         self.parent = parent
@@ -1898,7 +1898,7 @@
         @param low_index: the lowest index of the page
         @param high_index: the highest index of the page
         @param data: data
-    	"""
+        """
         self.MainTable.Destroy()
         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
         @param data: data
-    	"""
+        """
         self.SubTable.Destroy()
         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):
         """
-	    Constructor
-	    @param parent: RegisterNotebook object
-	    @param row, col: size of the table
-	    @param controler: _EthercatSlaveCTN class in EthercatSlave.py
-	    """
+            Constructor
+            @param parent: RegisterNotebook object
+            @param row, col: size of the table
+            @param controler: _EthercatSlaveCTN class in EthercatSlave.py
+            """
         self.parent = parent
         self.Data = {}
         self.Row = row
@@ -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:
             event.Skip()
@@ -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):
         """
-    	 Constructor
-    	 @param parent: RegisterNotebook object
-    	 @param row, col: size of the table
-    	"""
+         Constructor
+         @param parent: RegisterNotebook object
+         @param row, col: size of the table
+        """
         self.parent = parent
         self.Data = {}
         self.Row = row
@@ -2097,10 +2097,10 @@
 
     def SetValue(self, parent, data):
         """
-	    Set the data into the subtable.
-	    @param parent: RegisterNotebook object
-	    @param data: data
-	    """
+            Set the data into the subtable.
+            @param parent: RegisterNotebook object
+            @param data: data
+            """
         # lset label name and size
         Register_SubTable_Label = [(0, "Bits"), (1, "Name"),
                                    (2, "Value"), (3, "Enum")]