slicer.modules.DICOMWidget.browserWidget.dicomBrowser does not work in preview release

Slicer version 5.1.0, revision 30927, built 2022-05-09, MacOS

I tried to follow an example for loading dicoms form the Script repository — 3D Slicer documentation, however

slicer.modules.DICOMWidget.browserWidget.dicomBrowser

does not work, it throws only the following error:

AttributeError: module ‘modules’ has no attribute ‘DICOMWidget’

This is how it is supposed to work: module widgets are only instantiated when they are needed (i.e., when you switch to a module the first time). That is why the script example starts with switching to the DICOM module.

1 Like