controls/DebugVariablePanel/DebugVariableGraphicViewer.py
changeset 1767 c74815729afd
parent 1766 c1e5b9f19483
child 1768 691083b5682a
--- a/controls/DebugVariablePanel/DebugVariableGraphicViewer.py	Thu Aug 17 17:25:17 2017 +0300
+++ b/controls/DebugVariablePanel/DebugVariableGraphicViewer.py	Fri Aug 18 12:36:31 2017 +0300
@@ -797,8 +797,9 @@
 
             # If middle button is pressed and moving graph along X coordinate
             # is in progress
-            elif event.button == 2 and self.GraphType == GRAPH_PARALLEL and \
-                 self.MouseStartPos is not None:
+            elif (event.button == 2 and
+                  self.GraphType == GRAPH_PARALLEL and
+                  self.MouseStartPos is not None):
                 start_tick, end_tick = self.ParentWindow.GetRange()
                 rect = self.GetAxesBoundingBox()
 
@@ -1038,8 +1039,8 @@
             for idx in xrange(num_item):
 
                 # Get color from color cycle (black if only one item)
-                color = ('k' if num_item == 1
-                             else COLOR_CYCLE[idx % len(COLOR_CYCLE)])
+                color = ('k' if num_item == 1 else
+                         COLOR_CYCLE[idx % len(COLOR_CYCLE)])
 
                 # In 3D graph items variable label are not displayed as text
                 # in figure, but as axis title