code: def qteGetAppletHandle(self, appletID: str):
          
          # Compile list of applet Ids.
          id_list = [_.qteAppletID() for _ in self._qteAppletList]
  
          # If one of the applets has ``appletID`` then return a
          # reference to it.
          if appletID in id_list:
              idx = id_list.index(appletID)
              return self._qteAppletList[idx]
          else:
              return None
docs: Return a handle to ``appletID``.
  
          If no applet with ID ``appletID`` exists then **None** is
          returned.
  
          |Args|
  
          * ``appletID`` (**str**): ID of applet.
  
          |Returns|
  
          * **QtmacsApplet**: handle to applet with ID ``appletID``.
  
          |Raises|
  
          * **QtmacsArgumentError** if at least one argument has an invalid type.