Begginer question.
suppose i have this code:
x = input(f" give a number ")
while True:
print(x)
when i generate this code in an .exe and open it a terminal opens that asks me for the input and print infinitly in the terminal window the number. I want to be able to close the terminal from the taskbar and the program still is running in the background and if i want to i could like to restore the terminal window to see the program running. maybe create a system tray icon that runs the program?
i tried to create tray icon using pystray and run the above program in threading but didn't manage to make it happen as described.