I am hanging a little bit with the Threading. I would like to run a main programm and from there I want to start a Deamon - Thread and continuing in the mil programm.
Here is my code
class LEDStrip():
def __init__(self):
#init of LED
def startLightcyclingThread(self):
self.lightsdaemon = Thread(target=self.cycleMulticolorLights(), args=(), daemon=True, name='Background')
self.lightsdaemon.start()
class Test():
def __init__(self):
self.strip = LEDStrip()
def testfun(self):
self.strip.startLightcyclingThread()
print("J")
def main():
test = Test()
test.testfun()
But I see the print out put only after the deamon is finished. How can I put the deamon in to Background and see the print output directly??
Thanks