docs: def qteUnbindAllFromApplet(self, applet: (QtmacsApplet, str)):
          """
          Restore the global key-map for all widgets inside ``applet``.
  
          This method effectively resets the key map of all widgets to
          the state they would be in if the widgets were newly
          instantiated right now.
  
          The ``applet`` parameter can either be an instance of
          ``QtmacsApplet`` or a string denoting an applet ID. In the
          latter case the ``qteGetAppletHandle`` method is used to fetch
          the respective applet instance.
  
          If ``applet`` does not refer to an existing applet then
          nothing happens.
  
          |Args|
  
          * ``applet`` (**QtmacsApplet**, **str**): only widgets in this
            applet are affected.
  
          |Returns|
  
          * **None**
  
          |Raises|
  
          * **QtmacsArgumentError** if at least one argument has an invalid type.
          """
          # If ``applet`` was specified by its ID (ie. a string) then
          # fetch the associated ``QtmacsApplet`` instance. If
          # ``applet`` is already an instance of ``QtmacsApplet`` then
          # use it directly.
          if isinstance(applet, str):
              appletObj = self.qteGetAppletHandle(applet)
          else:
              appletObj = applet
  
          # Return immediately if the appletObj is invalid.
          if appletObj is None:
              return
  
          # Remove the key sequence from the applet window itself.
          appletObj._qteAdmin.keyMap = self.qteCopyGlobalKeyMap()
  
          # Restore the global key-map for every widget.
          for wid in appletObj._qteAdmin.widgetList:
              wid._qteAdmin.keyMap = self.qteCopyGlobalKeyMap()