@@ -205,7 +205,7 @@ def __init__(self, splash, cursor_bmp, screen_width, screen_height):
205205 print ("The application will run, but mouse control may not work." )
206206
207207
208- def find_mouse (self ):
208+ def find_mouse (self ): # pylint: disable=too-many-statements, too-many-locals
209209 """Find the mouse device with multiple retry attempts"""
210210 MAX_ATTEMPTS = 5
211211 RETRY_DELAY = 1 # seconds
@@ -414,7 +414,7 @@ def _process_mouse_input(self):
414414
415415################################################################################
416416
417- class Paint ():
417+ class Paint (): # pylint: disable=too-many-statements
418418 def __init__ (self , display = None ):
419419
420420 def _cursor_bitmap_1 ():
@@ -630,7 +630,7 @@ def _draw_line(self, start, end):
630630 else :
631631 x0 += 1
632632
633- def _fill (self , x , y , c ):
633+ def _fill (self , x , y , c ): # pylint: disable=too-many-branches,too-many-locals
634634 """Fill an area with the current color.
635635
636636 :param x: x coordinate to start filling from
@@ -640,7 +640,8 @@ def _fill(self, x, y, c):
640640 MARKER = 8 # Marker for filled areas
641641 print (f"Filling at ({ x } , { y } ) with color { c } " )
642642
643- if self ._fg_bitmap [x , y ] != c :
643+ # pylint: disable-next=too-many-nested-blocks
644+ if self ._fg_bitmap [x , y ] != c :
644645 blank_color = self ._fg_bitmap [x , y ]
645646 self ._fg_bitmap [x , y ] = MARKER
646647 done = False
@@ -719,7 +720,8 @@ def _handle_a_press(self, location):
719720 self ._plot (location [0 ], location [1 ], self ._pencolor )
720721 self ._poller .poke ()
721722
722- def _handle_a_release (self ):
723+ @staticmethod
724+ def _handle_a_release ():
723725 print ("A Released!" )
724726
725727 def _handle_b_release (self , location ):
0 commit comments