May 2017
Beginner to intermediate
444 pages
11h 31m
English
Let's first see what happens when we call a function or a method of our GUI that has some sleep associated with it without using threads.
Adding a loop into our button callback method with some sleep time results in our GUI becoming unresponsive and, when we try to close the GUI, things get even worse: GUI_multiple_threads_sleep_freeze.py
# Button callback def click_me(self): self.action.configure(text='Hello ' + self.name.get() + ' ' + self.number_chosen.get()) ...Read now
Unlock full access