Skip to content

Commit 12274ab

Browse files
authored
Merge pull request #24 from lesamouraipourpre/max-size
Remove max_size parameter
2 parents 35915a7 + 9292142 commit 12274ab

10 files changed

+16
-14
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Introduction
22
============
33

4-
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-cursorcontrol/badge/?version=latest
4+
.. image:: https://readthedocs.org/projects/cursorcontrol/badge/?version=latest
55
:target: https://circuitpython.readthedocs.io/projects/cursorcontrol/en/latest/
66
:alt: Documentation Status
77

adafruit_cursorcontrol/cursorcontrol.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
"""
6-
`adafruit_cursorcontrol`
6+
`adafruit_cursorcontrol.cursorcontrol`
77
================================================================================
88
99
Mouse cursor for interaction with CircuitPython UI elements.
@@ -23,7 +23,7 @@
2323
import displayio
2424

2525
__version__ = "0.0.0-auto.0"
26-
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Cursor.git"
26+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_CursorControl.git"
2727

2828

2929
class Cursor:
@@ -44,7 +44,7 @@ class Cursor:
4444
display = board.DISPLAY
4545
4646
# Create the display context
47-
splash = displayio.Group(max_size=22)
47+
splash = displayio.Group()
4848
4949
# initialize the mouse cursor object
5050
mouse_cursor = Cursor(display, display_group=splash)
@@ -227,7 +227,7 @@ def cursor_bitmap(self, bmp):
227227
def generate_cursor(self, bmp):
228228
"""Generates a cursor icon"""
229229
self._is_deinited()
230-
self._cursor_grp = displayio.Group(max_size=1, scale=self._scale)
230+
self._cursor_grp = displayio.Group(scale=self._scale)
231231
self._cur_palette = displayio.Palette(3)
232232
self._cur_palette.make_transparent(0)
233233
self._cur_palette[1] = 0xFFFFFF

adafruit_cursorcontrol/cursorcontrol_cursormanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
"""
6-
`adafruit_cursorcontrol_cursormanager`
6+
`adafruit_cursorcontrol.cursorcontrol_cursormanager`
77
================================================================================
88
Simple interaction user interface interaction for Adafruit_CursorControl.
99
* Author(s): Brent Rubell

docs/api.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
API
2-
====
3-
.. automodule:: adafruit_cursorcontrol
1+
.. automodule:: adafruit_cursorcontrol.cursorcontrol
2+
:members:
3+
4+
.. automodule:: adafruit_cursorcontrol.cursorcontrol_cursormanager
45
:members:

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Uncomment the below if you use native CircuitPython modules such as
2626
# digitalio, micropython and busio. List the modules you use. Without it, the
2727
# autodoc module docs will fail to generate with a warning.
28-
autodoc_mock_imports = ["displayio"]
28+
autodoc_mock_imports = ["displayio", "gamepadshift"]
2929

3030

3131
intersphinx_mapping = {

examples/cursorcontrol_buttons_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
display = board.DISPLAY
1515

1616
# Create the display context
17-
splash = displayio.Group(max_size=22)
17+
splash = displayio.Group()
1818

1919
# Use the built-in system font
2020
font = terminalio.FONT

examples/cursorcontrol_custom_cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
display = board.DISPLAY
1212

1313
# Create the display context
14-
splash = displayio.Group(max_size=5)
14+
splash = displayio.Group()
1515

1616
# initialize the mouse cursor object
1717
bmp = displayio.Bitmap(20, 20, 3)

examples/cursorcontrol_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
display = board.DISPLAY
1212

1313
# Create the display context
14-
splash = displayio.Group(max_size=5)
14+
splash = displayio.Group()
1515

1616
# initialize the mouse cursor object
1717
mouse_cursor = Cursor(display, display_group=splash)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
# SPDX-License-Identifier: Unlicense
44

55
Adafruit-Blinka
6+
adafruit-circuitpython-debouncer

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# Author details
3434
author="Adafruit Industries",
3535
author_email="[email protected]",
36-
install_requires=["Adafruit-Blinka", "no"],
36+
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-debouncer"],
3737
# Choose your license
3838
license="MIT",
3939
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)