'Callback when a print gcode has been sent'

def printsentcb(self, gline):

    if gline.is_move:
        if hasattr(self.gwindow, 'set_current_gline'):
            wx.CallAfter(self.gwindow.set_current_gline, gline)
        if hasattr(self.gviz, 'set_current_gline'):
            wx.CallAfter(self.gviz.set_current_gline, gline)
