File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 26
26
try :
27
27
from types import TracebackType
28
28
from typing import Optional , Type
29
+
30
+ from circuitpython_typing .displayio import AnyDisplay
29
31
except ImportError :
30
32
pass
31
33
36
38
class Cursor :
37
39
"""Mouse cursor interaction for CircuitPython.
38
40
39
- :param ~displayio.Display display: CircuitPython display object.
41
+ :param ~AnyDisplay display: CircuitPython display object.
40
42
:param ~displayio.Group display_group: CircuitPython group object to append the cursor to.
41
43
:param ~displayio.Bitmap bmp: CircuitPython bitmap object to use as the cursor
42
44
:param bool is_hidden: Cursor is hidden on init.
@@ -60,7 +62,7 @@ class Cursor:
60
62
61
63
def __init__ (
62
64
self ,
63
- display : Optional [displayio . Display ] = None ,
65
+ display : Optional [AnyDisplay ] = None ,
64
66
display_group : Optional [displayio .Group ] = None ,
65
67
bmp : Optional [displayio .Bitmap ] = None ,
66
68
is_hidden : bool = False ,
Original file line number Diff line number Diff line change 3
3
# SPDX-License-Identifier: Unlicense
4
4
5
5
Adafruit-Blinka
6
+ Adafruit-Blinka-Displayio
6
7
adafruit-circuitpython-debouncer
8
+ adafruit-circuitpython-typing
You can’t perform that action at this time.
0 commit comments