'Callback on print end/pause'

def endcb(self):

    pronsole.pronsole.endcb(self)
    if (self.p.queueindex == 0):
        self.p.runSmallScript(self.endScript)
        if self.settings.display_progress_on_printer:
            printer_progress_string = 'M117    Finished    Print'
            self.p.send_now(printer_progress_string)
        wx.CallAfter(self.pausebtn.Disable)
        wx.CallAfter(self.printbtn.SetLabel, _('Print'))
        wx.CallAfter(self.toolbarsizer.Layout)
