May 2019
Intermediate to advanced
542 pages
13h 37m
English
Our expectation with this script is that, as we search through directories on the system, we'll get a steady printout of search results to the results area, as well as constant updates on the current directory being searched in the status bar.
If you run it, however, you'll find that this is not what actually happens. Instead, the moment the search starts, the GUI freezes up. Nothing is shown in the status bar and no entries appear in the list widget, even though matches are being printed to the console. Only when the search finally finishes do the results appear and the status gets updated.
To fix this, we need to introduce threading.
So, why does the program print to the console in real time ...
Read now
Unlock full access