title: Delete multiple selected items from the listbox, as well as from the list
body: <p>I am creating a simple GUI program to manage priorities. </p>
  
  <p>I am having troubles with deleting selected items from the listbox, as well as from the list at the same time. </p>
  
  <p>For instance, in C#, I would create a following method:</p>
  
  <pre><code>void Remove()
  {
      Priority priority = new Priority();
      try { priority = FindPriority(listView1.SelectedItems[0].Text); }
      catch { return; }
      if (listView1.SelectedItems.Count &gt; 0)
      {
          try
          {
              foreach (ListViewItem eachItem in listView1.SelectedItems)
              {
                  priorities.RemoveAll(x =&gt; x.Subject == eachItem.Text);
                  listView1.Items[listView1.Items.Count - 1].Selected = true;
                  listView1.Items.Remove(eachItem);
              }
          }
          catch { }
      }
      else
      {
          MessageBox.Show("You have not selected any priorities!", "Notification", MessageBoxButtons.OK, MessageBoxIcon.Information);
      }
  }
  </code></pre>
  
  <p>How can I do this in Python?</p>
  
  <p>I'm using Python 3.5.</p>