'Load the selected spool to the correspondent extruder.'

def onClickLoad(self, event, extruder):

    spool_index = self.spool_list.GetFirstSelected()
    if (spool_index == (-1)):
        self.statusbar.SetStatusText('Could    not    load    the    spool.    No    spool    selected.')
        return 0
    else:
        spool_name = self.spool_list.GetItemText(spool_index)
        self.statusbar.SetStatusText('')
    spool_extruder = self.spool_manager.isLoaded(spool_name)
    if (spool_extruder > (-1)):
        self.statusbar.SetStatusText(("Spool    '%s'    is    already    loaded    for    Extruder    %d." % (spool_name, spool_extruder)))
        return 0
    self.spool_manager.load(spool_name, extruder)
    self.current_spools_dialog.refreshDialog(self.spool_manager)
    self.statusbar.SetStatusText(("Loaded    spool    '%s'    for    Extruder    %d." % (spool_name, extruder)))
