code: def addEntry(self, key='', value=''):
          
          img = resources.find('img/close.png')
          new_item = XTreeWidgetItem()
          new_item.setText(1, nativestring(key))
          new_item.setText(2, nativestring(value))
          new_item.setIcon(0, QtGui.QIcon(img))
          new_item.setFixedHeight(22)
          self.insertTopLevelItem(self.topLevelItemCount() - 1, new_item)
          
          return new_item
docs: Creates a new entry item for this widget.
          
          :param      key     | <str>
                      value   | <variant>