Mastering GUI Programming with Python by Alan D. Moore

Mastering GUI Programming with Python by Alan D. Moore


Author:Alan D. Moore
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2019-05-23T14:23:38+00:00

Finally, let's add two MainWindow methods to keep the user informed about the status of the search:

def on_finished(self):

qtw.QMessageBox.information(self, 'Complete', 'Search complete')

def on_directory_changed(self, path):

self.statusBar().showMessage(f'Searching in: {path}')

The first will show a status indicating that the search is finished, while the second will show a status indicating the current path that the searcher is searching.

Back in __init__(), these will be connected to the searcher, as follows:




Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.