code: def qteAddMiniApplet(self, appletObj: QtmacsApplet):
          if self._qteMiniApplet is not None:
              msg = 'Cannot replace mini applet more than once.'
              self.qteLogger.warning(msg)
              return False
          if appletObj.layout() is None:
              appLayout = QtGui.QHBoxLayout()
              for handle in appletObj._qteAdmin.widgetList:
                  appLayout.addWidget(handle)
              appletObj.setLayout(appLayout)
          appletObj._qteAdmin.isMiniApplet = True
          self._qteMiniApplet = appletObj
          app = self._qteActiveApplet
          appWin = self.qteActiveWindow()
          self._qteMiniApplet._qteCallingApplet = app
          self._qteMiniApplet._qteCallingWindow = appWin
          del app
          self._qteAppletList.insert(0, self._qteMiniApplet)
          appWin.qteLayoutSplitter.addWidget(self._qteMiniApplet)
          self._qteMiniApplet.show(True)
          wid = self._qteMiniApplet.qteNextWidget(numSkip=0)
          self._qteMiniApplet.qteMakeWidgetActive(wid)
          self.qteMakeAppletActive(self._qteMiniApplet)
          return True