# Функции. Тут не все, есть и выше немного, но они не важны для моей проблемы.

def compare(forum_url):
    state1_list, state2_list = [], []
    list1 = get_info(forum_url, state1_list)
    time.sleep(10)
    list2 = get_info(forum_url, state2_list)

    if list1[2] != list2[2]:
        Sg.cprint(list2[2], '\n ')
        Sg.cprint(list2[3], '\n ')
    else:
        Sg.cprint('no new posts \n')

    state1_list.clear()
    state2_list.clear()


def compare_on_time(forum_url):
    schedule.every(1).seconds.do(compare, forum_url)
    while True:
        schedule.run_pending()
        
        
# Та часть GUI, которую я не могу написать. Второй event должен останавлиать первый.
        elif event == 'Follow Sales Ads':
            threading.Thread(target=compare_on_time,
                             args=('https://f...content-available-to-author-only...e.com/c/marketplace/sales-ads/',)).start()
        elif event == 'Stop following':
			