Python Forum
[Tkinter] Is there a way to sleep without stopping user input?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Is there a way to sleep without stopping user input?
#1
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?
Reply
#2
[Tkinter] How to deal with code that blocks the mainloop, freezing the gui
Reply
#3
That or you use some version of Qt and the QTimer ;) but that would be a major paradigm shift for you I imagine
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGUI] [Solved]Help storing in user input from line edit Extra 2 1,680 May-12-2022, 07:46 PM
Last Post: Extra
  Convert combobox user input in to date with tkinter Ame 8 6,662 Jul-01-2020, 09:40 PM
Last Post: Yoriz
  Create an identification code from user input PeroPuri 1 1,871 Apr-11-2020, 11:56 AM
Last Post: Larz60+
  [Tkinter] Tkinter/Turtle Stopping and Starting Timers Cleanly robin73 2 3,306 Apr-01-2020, 07:31 AM
Last Post: robin73
  [PyQt] Python PyQt5 - Change label text dynamically based on user Input ppel123 1 13,669 Mar-20-2020, 07:21 AM
Last Post: deanhystad
  PyQt5: How do you set the user input of a line edit to a specific variable? YoshikageKira 17 11,477 Dec-26-2019, 03:18 PM
Last Post: Denni
  [Tkinter] sleep(n) not working inside tkinter mainloop roger31415 2 5,130 Jul-14-2019, 06:57 PM
Last Post: wuf
  [Tkinter] help please, checking the user input and outputting the result tomkovladko 3 2,712 Mar-05-2019, 08:58 PM
Last Post: joe_momma
  [PyGUI] Hi All, how to hide/mask user input in PySimpleGUI nmrt 1 14,841 Sep-21-2018, 09:59 AM
Last Post: nmrt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020