Asynchronous Programming with Thread and Queue
Many times, code that works flawlessly in the simplicity of a test environment encounters problems in the real world; unfortunately, this seems to be the case for the ABQ Data Entry application. While your network functions ran instantaneously in your localhost-only test environment, the lab's slow VPN uplink has exposed some shortcomings in your programming. Users report that the application freezes or becomes unresponsive when network transactions are taking place. Although it does work, it looks unprofessional and is an annoyance to users.
To solve this problem, we're going to need to apply asynchronous programming techniques, which we'll learn about in the following topics:
- In The Tkinter event queue, we'll learn how to manipulate Tkinter's event processing to improve the responsiveness of the application.
- In Running code in the background with threads, we'll explore writing multi...