Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c179c2d

Browse files
Restructured nested if condition
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 6268db5 commit c179c2d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

examples/widgets/annotated_cursor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,8 @@ def onmove(self, event):
145145
# Skip even the call of the base class, because this would restore the
146146
# background, draw the cursor lines and would leave us the job to
147147
# re-draw the text.
148-
if plotpoint is not None:
149-
if plotpoint == self.lastdrawnplotpoint:
150-
return
148+
if plotpoint is not None and plotpoint == self.lastdrawnplotpoint:
149+
return
151150

152151
# Baseclass redraws canvas and cursor. Due to blitting,
153152
# the added text is removed in this call, because the

0 commit comments

Comments
 (0)