code: def qteKillApplet(self, appletID: str):
          ID_list = [_.qteAppletID() for _ in self._qteAppletList]
          if appletID not in ID_list:
              return
          else:
              idx = ID_list.index(appletID)
              appObj = self._qteAppletList[idx]
          if self.qteIsMiniApplet(appObj):
              self.qteKillMiniApplet()
              return
          appObj.qteToBeKilled()
          window = appObj.qteParentWindow()
          newApplet = self.qteNextApplet(numSkip=-1, skipInvisible=False,
                                         skipVisible=True)
          if (newApplet is None) or (newApplet is appObj):
              newApplet = None
          else:
              self.qteReplaceAppletInLayout(newApplet, appObj, window)
          if self._qteActiveApplet is appObj:
              self._qteActiveApplet = newApplet
          self.qteLogger.debug('Kill applet: <b>{}</b>'.format(appletID))
          self._qteAppletList.remove(appObj)
          appObj.close()
          sip.delete(appObj)