'Callback when printer goes online (graphical bits)'

def online_gui(self):

    self.connectbtn.SetLabel(_('Disconnect'))
    self.connectbtn.SetToolTip(wx.ToolTip('Disconnect    from    the    printer'))
    self.connectbtn.Bind(wx.EVT_BUTTON, self.disconnect)
    if hasattr(self, 'extrudersel'):
        self.do_tool(self.extrudersel.GetValue())
    self.gui_set_connected()
    if self.filename:
        self.printbtn.Enable()
    wx.CallAfter(self.toolbarsizer.Layout)
