How to call a function from the logic

Hi @siaeleni -

You should be able to do:

ModuleNameLogic().Test()

if you are in a different module file or in the python interactor you might need to call import ModuleName first.

(As an aside, the other ‘logic’ class slicer.modules.moduleName.logic is actually the C++ loadable module instance corresponding to the scripted module, but it’s really just an internal structure and doesn’t have any particular utility here).

-Steve