Skip to content

vectorio import should be optional inside the widget module #51

Closed
@FoamyGuy

Description

@FoamyGuy

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions