def deleteCallback(self, result): if result: vlcServerConfig.delete(self.serverlist.getSelection()) self.updateServerlist()
def addCallback(self, result, server): if result: vlcServerConfig.save(server) self.updateServerlist() else: vlcServerConfig.delete(server)