code: def drawInspectorContents(self, reason, origin=None):
          
          logger.debug("")
          logger.debug("-------- Drawing inspector of window: {} --------".format(self.windowTitle()))
          if self.inspector:
              self.inspector.updateContents(reason=reason, initiator=origin)
          else:
              logger.debug("No inspector selected")
          logger.debug("Finished draw inspector.\n")
docs: Draws all contents of this window's inspector.
              The reason and origin parameters are passed on to the inspector's updateContents method.
  
              :param reason: string describing the reason for the redraw.
                  Should preferably be one of the UpdateReason enumeration class, but new values may
                  be used (which are then ignored by existing inspectors).
              :param origin: object with extra infor on the reason