Python Forum
set up the timer when I don't press on keyboard buttons
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set up the timer when I don't press on keyboard buttons
#2
time.sleep simply stops the execution and that is why you are not able to edit. what you need is to delay the execution of the code that disable the control. I don't know what GUI you use, but for example Tkinter root and other Toplevel windows have method called after() and in this case you will put line14 in separate function and call it with delay. You should have something similar in your GUI framework too
Reply


Messages In This Thread
RE: set up the timer when I don't press on keyboard buttons - by buran - Oct-05-2017, 07:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  email timer/rss feed timer ndiniz 1 2,130 Feb-02-2021, 07:18 PM
Last Post: nilamo
  How to run atom python script on idle press on keyboard shortcut. sonjoypall 2 5,189 Feb-07-2018, 07:51 AM
Last Post: buran
  Buttons or Radio Buttons on Tkinter Treeview draems 0 3,433 Oct-31-2017, 04:06 AM
Last Post: draems

Forum Jump:

User Panel Messages

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