Skip to content

Remove max_size parameter #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Introduction
============

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

Expand Down
8 changes: 4 additions & 4 deletions adafruit_cursorcontrol/cursorcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

"""
`adafruit_cursorcontrol`
`adafruit_cursorcontrol.cursorcontrol`
================================================================================

Mouse cursor for interaction with CircuitPython UI elements.
Expand All @@ -23,7 +23,7 @@
import displayio

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


class Cursor:
Expand All @@ -44,7 +44,7 @@ class Cursor:
display = board.DISPLAY

# Create the display context
splash = displayio.Group(max_size=22)
splash = displayio.Group()

# initialize the mouse cursor object
mouse_cursor = Cursor(display, display_group=splash)
Expand Down Expand Up @@ -227,7 +227,7 @@ def cursor_bitmap(self, bmp):
def generate_cursor(self, bmp):
"""Generates a cursor icon"""
self._is_deinited()
self._cursor_grp = displayio.Group(max_size=1, scale=self._scale)
self._cursor_grp = displayio.Group(scale=self._scale)
self._cur_palette = displayio.Palette(3)
self._cur_palette.make_transparent(0)
self._cur_palette[1] = 0xFFFFFF
Expand Down
2 changes: 1 addition & 1 deletion adafruit_cursorcontrol/cursorcontrol_cursormanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

"""
`adafruit_cursorcontrol_cursormanager`
`adafruit_cursorcontrol.cursorcontrol_cursormanager`
================================================================================
Simple interaction user interface interaction for Adafruit_CursorControl.
* Author(s): Brent Rubell
Expand Down
7 changes: 4 additions & 3 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
API
====
.. automodule:: adafruit_cursorcontrol
.. automodule:: adafruit_cursorcontrol.cursorcontrol
:members:

.. automodule:: adafruit_cursorcontrol.cursorcontrol_cursormanager
:members:
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
autodoc_mock_imports = ["displayio"]
autodoc_mock_imports = ["displayio", "gamepadshift"]


intersphinx_mapping = {
Expand Down
2 changes: 1 addition & 1 deletion examples/cursorcontrol_buttons_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
display = board.DISPLAY

# Create the display context
splash = displayio.Group(max_size=22)
splash = displayio.Group()

# Use the built-in system font
font = terminalio.FONT
Expand Down
2 changes: 1 addition & 1 deletion examples/cursorcontrol_custom_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
display = board.DISPLAY

# Create the display context
splash = displayio.Group(max_size=5)
splash = displayio.Group()

# initialize the mouse cursor object
bmp = displayio.Bitmap(20, 20, 3)
Expand Down
2 changes: 1 addition & 1 deletion examples/cursorcontrol_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
display = board.DISPLAY

# Create the display context
splash = displayio.Group(max_size=5)
splash = displayio.Group()

# initialize the mouse cursor object
mouse_cursor = Cursor(display, display_group=splash)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
# SPDX-License-Identifier: Unlicense

Adafruit-Blinka
adafruit-circuitpython-debouncer
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# Author details
author="Adafruit Industries",
author_email="circuitpython@adafruit.com",
install_requires=["Adafruit-Blinka", "no"],
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-debouncer"],
# Choose your license
license="MIT",
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down