docstr: Mark a sequence of URLs as enabled or disabled
  
  Set the enabled/disabled flag for the given urls.
  
  paths - a sequence of URLs
  
  enabled - True to enable them, False to disable them.
docstr_tok: ["Mark","a","sequence","of","URLs","as","enabled","or","disabled","Set","the","enabled\/disabled","flag","for","the","given","urls",".","paths","-","a","sequence","of","URLs","enabled","-","True","to","enable","them",",","False","to","disable","them","."]
code: def enable_paths(self, paths, enabled):
      """Mark a sequence of URLs as enabled or disabled
  
      Set the enabled/disabled flag for the given urls.
  
      paths - a sequence of URLs
  
      enabled - True to enable them, False to disable them.
      """
      if enabled:
          for path in paths:
              if path in self.disabled_urls:
                  self.disabled_urls.remove(path)
                  self.SetItemTextColour(
                      self.file_id_map[path], ENABLED_COLOR
                  )
                  file_objs = [
                      f for f in self.hidden_files if f.url == path
                  ]
                  self.add_files(file_objs)
                  # Formerly disabled URLs won't have been extracted
                  self._metadata_extracted = False
      else:
          for path in paths:
              if path not in self.disabled_urls:
                  self.disabled_urls.add(path)
                  self.SetItemTextColour(
                      self.file_id_map[path], DISABLED_COLOR
                  )
                  self.Collapse(self.file_id_map[path])
                  if not self.show_disabled:
                      self.do_hide_disabled([path])
  
imports: import logging
  import os
  import sys
  import uuid
  from urllib.request import url2pathname
  from urllib.parse import urlparse
  import wx
  import wx.lib.scrolledpanel
  from cellprofiler_core.pipeline import ImageFile
  from cellprofiler_core.preferences import report_progress
label_desc: Use image node_id 18 for calling the PathListCtrl obj's underlying member method code with example usage: obj.enable_paths(paths, enabled) without return types