parameters: (self)
docstring: Since dicom plugins are discovered while the application
      is initialized, they may be found after the DICOM module
      itself if initialized.  This method is tied to a singleShot
      that will be called once the event loop is read to start.
docstring_summary: Since dicom plugins are discovered while the application
      is initialized, they may be found after the DICOM module
      itself if initialized.  This method is tied to a singleShot
      that will be called once the event loop is read to start.
docstring_tokens: Since dicom plugins are discovered while the application is initialized they may be found after the DICOM module itself if initialized . This method is tied to a singleShot that will be called once the event loop is read to start .
function: def performPostModuleDiscoveryTasks(self):
      """Since dicom plugins are discovered while the application
      is initialized, they may be found after the DICOM module
      itself if initialized.  This method is tied to a singleShot
      that will be called once the event loop is read to start.
      """
  
      if slicer.mrmlScene.GetTagByClassName( "vtkMRMLScriptedModuleNode" ) != 'ScriptedModule':
        slicer.mrmlScene.RegisterNodeClass(vtkMRMLScriptedModuleNode())
  
      self.initializeDICOMDatabase()
  
      settings = qt.QSettings()
      if settings.contains('DICOM/RunListenerAtStart') and not slicer.app.commandOptions().testingEnabled:
        if settings.value('DICOM/RunListenerAtStart') == 'true':
          self.startListener()
  
      if not slicer.app.commandOptions().noMainWindow:
        # add to the main app file menu
        self.addMenu()
        # add the settings options
        self.settingsPanel = DICOMSettingsPanel()
        slicer.app.settingsDialog().addPanel("DICOM", self.settingsPanel)
  
        dataProbe = slicer.util.mainWindow().findChild("QWidget", "DataProbeCollapsibleWidget")
        self.wasDataProbeVisible = dataProbe.isVisible()
  
        layoutManager = slicer.app.layoutManager()
        layoutManager.layoutChanged.connect(self.onLayoutChanged)
        layout = (
          "<layout type=\"horizontal\">"
          " <item>"
          "  <dicombrowser></dicombrowser>"
          " </item>"
          "</layout>"
        )
        layoutNode = slicer.app.layoutManager().layoutLogic().GetLayoutNode()
        layoutNode.AddLayoutDescription(
          slicer.vtkMRMLLayoutNode.SlicerLayoutDicomBrowserView, layout)
        self.currentViewArrangement = layoutNode.GetViewArrangement()
        self.previousViewArrangement = layoutNode.GetViewArrangement()
  
        slicer.app.moduleManager().connect(
          'moduleAboutToBeUnloaded(QString)', self._onModuleAboutToBeUnloaded)
function_tokens: def performPostModuleDiscoveryTasks ( self ) : if slicer . mrmlScene . GetTagByClassName ( "vtkMRMLScriptedModuleNode" ) != 'ScriptedModule' : slicer . mrmlScene . RegisterNodeClass ( vtkMRMLScriptedModuleNode ( ) ) self . initializeDICOMDatabase ( ) settings = qt . QSettings ( ) if settings . contains ( 'DICOM/RunListenerAtStart' ) and not slicer . app . commandOptions ( ) . testingEnabled : if settings . value ( 'DICOM/RunListenerAtStart' ) == 'true' : self . startListener ( ) if not slicer . app . commandOptions ( ) . noMainWindow : # add to the main app file menu self . addMenu ( ) # add the settings options self . settingsPanel = DICOMSettingsPanel ( ) slicer . app . settingsDialog ( ) . addPanel ( "DICOM" , self . settingsPanel ) dataProbe = slicer . util . mainWindow ( ) . findChild ( "QWidget" , "DataProbeCollapsibleWidget" ) self . wasDataProbeVisible = dataProbe . isVisible ( ) layoutManager = slicer . app . layoutManager ( ) layoutManager . layoutChanged . connect ( self . onLayoutChanged ) layout = ( "<layout type=\"horizontal\">" " <item>" "  <dicombrowser></dicombrowser>" " </item>" "</layout>" ) layoutNode = slicer . app . layoutManager ( ) . layoutLogic ( ) . GetLayoutNode ( ) layoutNode . AddLayoutDescription ( slicer . vtkMRMLLayoutNode . SlicerLayoutDicomBrowserView , layout ) self . currentViewArrangement = layoutNode . GetViewArrangement ( ) self . previousViewArrangement = layoutNode . GetViewArrangement ( ) slicer . app . moduleManager ( ) . connect ( 'moduleAboutToBeUnloaded(QString)' , self . _onModuleAboutToBeUnloaded )