code: def qteUnbindAllFromWidgetObject(self, widgetObj: QtGui.QWidget):
          
          # Check type of input arguments.
          if not hasattr(widgetObj, '_qteAdmin'):
              msg = '<widgetObj> was probably not added with <qteAddWidget>'
              msg += ' method because it lacks the <_qteAdmin> attribute.'
              raise QtmacsOtherError(msg)
  
          # Install the global key-map for this widget.
          widgetObj._qteAdmin.keyMap = self.qteCopyGlobalKeyMap()
docs: Reset the local key-map of ``widgetObj`` to the current global
          key-map.
  
          |Args|
  
          * ``widgetObj`` (**QWidget**): determines which widgets
            signature to use.
  
          |Returns|
  
          * **None**
  
          |Raises|
  
          * **QtmacsArgumentError** if at least one argument has an invalid type.
          * **QtmacsOtherError** if ``widgetObj`` was not added with
            ``qteAddWidget``.