

def run(self, kind):
    'Main function, runs on activation.'
    if (kind == 'latest'):
        thread = Thread(target=self.getComic)
    elif (kind == 'random'):
        thread = Thread(target=self.getRandomComic)
    elif (thread == 'list'):
        thread = Thread(target=self.getList)
    thread.start()

dataset/ETHPy150Open eivind88/xkcd/xkcd.py XkcdGetComicCommand.run/VarMisuse@58/81 `kind`->`thread`