Closed
Description
Currently the import here:
makes vectorio
a hard requirement for anything inside of the widgets
module within this library.
If I understand correctly the vecotorio import is only used if something calls rectangle_helper()
which is also in this file. Wrapping this import with try/except would allow the module to be used in contexts where vectorio
is not present i.e. using objects that extend widget.Widget
with Blinka_Displayio (as long as those widgets don't need rectangle_helper()
or anything else from vectorio
specifically.
Metadata
Metadata
Assignees
Labels
No labels