def buttonDisconnect(self, widget): print "buttonDisconnect was clicked" result = core.disconnect() update.labelConnect(result) #undim connect and serverselector app_gui.buttonConnect.set_sensitive(True) app_gui.ServerSelector.set_sensitive(True) #dim disconnect and Apply app_gui.buttonDisconnect.set_sensitive(False) app_gui.buttonApply.set_sensitive(False) app_gui.buttonChat.set_sensitive(False) app_gui.buttonMM.set_sensitive(False) app_gui.buttonAddWorld.set_sensitive(False) app_gui.buttonEnaCommand.set_sensitive(False)
def quit(self, widget): core.disconnect() print "Exit" sys.exit(1)