'Delete the selected spool.'

def onClickDelete(self, event):

    spool_index = self.spool_list.GetFirstSelected()
    if (spool_index == (-1)):
        self.statusbar.SetStatusText('Could    not    delete    the    spool.    No    spool    selected.')
        return 0
    else:
        spool_name = self.spool_list.GetItemText(spool_index)
        self.statusbar.SetStatusText('')
    delete_dialog = wx.MessageDialog(self, message=("Are    you    sure    you    want    to    delete    the    '%s'    spool" % spool_name), caption='Delete    Spool', style=(wx.YES_NO | wx.ICON_EXCLAMATION))
    if (delete_dialog.ShowModal() == wx.ID_YES):
        self.spool_manager.remove(spool_name)
        self.spool_list.refreshList(self.spool_manager)
        self.current_spools_dialog.refreshDialog(self.spool_manager)
        self.statusbar.SetStatusText(("Deleted    spool    '%s'." % spool_name))
