import time import threading class TestThread (threading.Thread): def run(self): while True: print('.', end='') thread = TestThread() thread.daemon = True thread.start() while True: time.sleep(1)