etherlab/EtherCATManagementEditor.py
changeset 2374 aed3ca79a10a
parent 2373 73d35ba8f982
child 2375 cfa68a06a24d
--- a/etherlab/EtherCATManagementEditor.py	Sat Sep 29 12:55:56 2018 +0300
+++ b/etherlab/EtherCATManagementEditor.py	Sat Sep 29 13:04:33 2018 +0300
@@ -438,7 +438,7 @@
                 (keep_going, skip) = slaveSDO_progress.Update(count)
 
             # If user click "Cancel" loop suspend immediately
-            if (keep_going == False):
+            if not keep_going:
                 break
 
         slaveSDO_progress.Destroy()
@@ -1744,7 +1744,7 @@
 
         # If "Compact View" Checkbox is True
         ## 'event' is argument of this method or event of checkbox.
-        if event == True or event.GetEventObject().GetValue():
+        if event is True or event.GetEventObject().GetValue():
             self.CompactFlag = True
 
             reg_compact_data = []