[Tkinter] Is there a way to sleep without stopping user input? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: [Tkinter] Is there a way to sleep without stopping user input? (/thread-21984.html) |
Is there a way to sleep without stopping user input? - GalaxyCoyote - Oct-23-2019 I am making an idle game, I will be using tkinter in the future but for now I am using the console as a sort of testing ground. I am trying to make a passive income feature (the player gets awarded £1 every 1 second) but the code has to be able to activate other functions in that time. Is there any way this is possible? RE: Is there a way to sleep without stopping user input? - Yoriz - Oct-23-2019 [Tkinter] How to deal with code that blocks the mainloop, freezing the gui RE: Is there a way to sleep without stopping user input? - Denni - Oct-23-2019 That or you use some version of Qt and the QTimer ;) but that would be a major paradigm shift for you I imagine |