Correcting imports
This commit is contained in:
parent
e6c98a95f3
commit
10a250cf11
9 changed files with 27 additions and 2 deletions
|
|
@ -36,8 +36,11 @@ Implementation Notes
|
|||
|
||||
import math
|
||||
from displayio import TileGrid, OnDiskBitmap, ColorConverter
|
||||
from adafruit_displayio_layout.widgets.widget import Widget
|
||||
from adafruit_displayio_layout.widgets.control import Control
|
||||
try:
|
||||
from adafruit_displayio_layout.widgets.widget import Widget
|
||||
from adafruit_displayio_layout.widgets.control import Control
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
__version__ = "0.0.0-auto.0"
|
||||
|
|
|
|||
|
|
@ -7,5 +7,8 @@
|
|||
Color Picker Library
|
||||
====================
|
||||
|
||||
.. automodule:: adafruit_displayio_color_picker.color_picker
|
||||
:members:
|
||||
|
||||
.. automodule:: adafruit_displayio_color_picker.wheel_maker
|
||||
:members:
|
||||
|
|
|
|||
10
examples/displayio_color_picker_wheel_maker_simpletest.py
Normal file
10
examples/displayio_color_picker_wheel_maker_simpletest.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# SPDX-FileCopyrightText: 2021 Jose David
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
"""
|
||||
Creates a bitmap color picker of 100 pixels
|
||||
"""
|
||||
|
||||
from adafruit_displayio_color_picker.wheel_maker import make_wheel
|
||||
|
||||
make_wheel("wheel100.bmp", 100, 0x000000)
|
||||
BIN
examples/wheel100.bmp
Normal file
BIN
examples/wheel100.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
3
examples/wheel100.bmp.license
Normal file
3
examples/wheel100.bmp.license
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2021 Jose David M.
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
BIN
examples/wheel150.bmp
Normal file
BIN
examples/wheel150.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
3
examples/wheel150.bmp.license
Normal file
3
examples/wheel150.bmp.license
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2021 Jose David M.
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
BIN
examples/wheel50.bmp
Normal file
BIN
examples/wheel50.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
3
examples/wheel50.bmp.license
Normal file
3
examples/wheel50.bmp.license
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2021 Jose David M.
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
Loading…
Reference in a new issue