'Callback when the printed layer changed'

def layer_change_cb(self, newlayer):

    pronsole.pronsole.layer_change_cb(self, newlayer)
    if ((self.settings.mainviz != '3D') or self.settings.trackcurrentlayer3d):
        wx.CallAfter(self.gviz.setlayer, newlayer)
