Hi everyone!
I was wondering if it was possible to set up an extension that defines a base module type that other modules can then inherit.
Basically what I would like is to have a set of classes that extend the SlicerLoadableModule, then another set extending those classes, e.g.:
foo.py
class foo(ScriptedLoadableModule):
...
class fooWidget(ScriptedLoadableModuleWidget):
...
class fooLogic(ScriptedLoadableModuleLogic):
...
bar.py
class bar(foo):
...
class barWidget(fooWidget):
...
class barLogic(fooLogic):
...
Is it possible to have a set up like this in slicer? Right now I can’t seem to get slicer to detect and load the module when I have it scan the extension directory.
Thanks!