code: def removeItem( self ):
          
          item = self.uiMenuTREE.currentItem()
          if ( not item ):
              return
          
          opts = QMessageBox.Yes | QMessageBox.No
          answer = QMessageBox.question( self,
                                         'Remove Item',
                                         'Are you sure you want to remove this '\
                                         ' item?',
                                         opts )
          
          if ( answer == QMessageBox.Yes ):
              parent = item.parent()
              if ( parent ):
                  parent.takeChild(parent.indexOfChild(item))
              else:
                  tree = self.uiMenuTREE
                  tree.takeTopLevelItem(tree.indexOfTopLevelItem(item))
docs: Removes the item from the menu.