Starting a new project from scratch#
Orange widgets can be written and associated to the Ewoks tasks provided by an Ewoks project.
For this, the Ewoks project needs to be setup as an Orange Add-on project. To bootstrap your project you can use The ewoks cookie cutter project
Example: adding a new section to the ewoksorange orangecontrib module#
If you want to simply include a new EwoksWidget to an existing orangecontrib project you will need the following:
add a new module (named ‘testtuto’ here) with the file containing the widget (folder + ‘__init__.py’ file to orangecontrib)
src/orangecontrib/testtuto/ ├── __init__.py └── ClipDataOW.py
Update the setup.cfg file: update ‘orange3.addon’ and ‘orange.widgets’:
orange3.addon = ewoksdemo=orangecontrib.ewoksdemo ewoksnowidget=orangecontrib.ewoksnowidget + testtuto=orangecontrib.testtuto orange.widgets = Ewoks Demo=orangecontrib.ewoksdemo Ewoks Without Widgets=orangecontrib.ewoksnowidget Ewoks Test=orangecontrib.ewokstest + Test Tuto=orangecontrib.testtuto