title: Delete QTreeWidgetItem in PyQt?
body: <p>I'm finding it frustratingly hard to find a simple way to delete my selected <code>QTreeWidgetItem</code>.</p>
  
  <p>My patchwork method involves setting the tree's current selection to <code>current</code> and then:</p>
  
  <pre><code>if current.parent() is not None:
     current.parent().removeChild(current)
  else:
     self.viewer.takeTopLevelItem(self.viewer.indexOfTopLevelItem(current))
  </code></pre>
  
  <p>It's not horrible, but isn't there a command that straight up just removes the item?</p>