Oct-05-2017, 07:50 AM
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