42
42
__version__ = "0.0.0-auto.0"
43
43
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Cursor.git"
44
44
45
- class Cursor :
45
+ class Cursor ( object ) :
46
46
"""Mouse cursor interaction for CircuitPython.
47
47
48
48
:param ~displayio.Display display: CircuitPython display object.
@@ -65,7 +65,7 @@ class Cursor:
65
65
# initialize the mouse cursor object
66
66
mouse_cursor = Cursor(display, display_group=splash)
67
67
"""
68
- # pylint: disable=too-many-arguments
68
+ # pylint: disable=too-many-arguments,line-too-long
69
69
def __init__ (self , display = None , display_group = None , bmp = None , is_hidden = False , cursor_speed = 5 , scale = 1 ):
70
70
self ._display = display
71
71
self ._scale = scale
@@ -76,6 +76,7 @@ def __init__(self, display=None, display_group=None, bmp=None, is_hidden=False,
76
76
if bmp is None :
77
77
bmp = self ._default_cursor_bitmap ()
78
78
self .generate_cursor (bmp )
79
+ # pylint: enable=too-many-arguments,line-too-long
79
80
80
81
def __enter__ (self ):
81
82
return self
@@ -175,6 +176,7 @@ def hide(self, is_hidden):
175
176
self ._is_hidden = False
176
177
self ._display_grp .append (self ._cursor_grp )
177
178
179
+ #pylint:disable=no-self-use
178
180
def _default_cursor_bitmap (self ):
179
181
bmp = displayio .Bitmap (20 , 20 , 3 )
180
182
# left edge, outline
@@ -196,6 +198,7 @@ def _default_cursor_bitmap(self):
196
198
bmp [i - 3 , 12 ] = 1
197
199
bmp [i - 4 , 11 ] = 1
198
200
return bmp
201
+ #pylint:enable=no-self-use
199
202
200
203
def generate_cursor (self , bmp ):
201
204
"""Generates a cursor icon"""
0 commit comments