from mytui import MainTui MT = MainTui() MT.start() time.sleep(4) from mypid import MainPID MP = MainPID() MP.daemon = True MP.start() time.sleep(4) from mydigitalinout import MainDGIO DGIO = MainDGIO() DGIO.daemon = True DGIO.start() while MT.isAlive(): try: time.sleep(1) except (KeyboardInterrupt, SystemExit): MT.quit = True DGIO.quit = True MP.quit = True MT.quit = True MML.quit = True MDL.quit = True print("END")
MML.start() #time.sleep(4) from mytui import MainTui MT = MainTui() MT.start() time.sleep(4) from mypid import MainPID MP = MainPID() MP.daemon = True MP.start() time.sleep(4) from mydigitalinout import MainDGIO DGIO = MainDGIO() DGIO.daemon = True DGIO.start() while MT.isAlive(): try: time.sleep(1) except (KeyboardInterrupt, SystemExit): MT.quit = True DGIO.quit = True MP.quit = True MT.quit = True MML.quit = True MDL.quit = True print('END')
MML = MainMultilogger() MML.start() #time.sleep(4) from mytui import MainTui MT = MainTui() MT.start() time.sleep(4) from mypid import MainPID MP = MainPID() MP.start() time.sleep(4) from mydigitalinout import MainDGIO DGIO = MainDGIO() DGIO.start() while MT.isAlive(): try: time.sleep(1) except (KeyboardInterrupt, SystemExit): MT.stop() DGIO.stop() MP.stop() MT.stop() MML.stop() MDL.stop() print('END')