def qteUnbindAllFromWidgetObject(self, widgetObj: QtGui.QWidget):
        """
        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``.
        """
        # 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()
def qteUnbindAllFromWidgetObject ( self , widgetObj : QtGui . QWidget ) : if not hasattr ( widgetObj , '_qteAdmin' ) : msg = '<widgetObj> was probably not added with <qteAddWidget>' msg += ' method because it lacks the <_qteAdmin> attribute.' raise QtmacsOtherError ( msg ) widgetObj . _qteAdmin . keyMap = self . qteCopyGlobalKeyMap ( )
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``.