- You have written a PyQt application in a file called Scan & Print Tool-box.py. You want to convert this into module-style organization; what change should you make?
The name of the script should change, since spaces, ampersands, and dashes are not valid characters to use in a Python module name. You might change the module name to scan_and_print_toolbox, for example.
- Your PyQt5 database application has a set of .sql files containing queries used by the application. It worked when your app was a single script in the same directories as the .sql files, but now that you've converted it into module-style organization, the queries can't be found. What should you do?
The best thing to do is to put your .sql files into a Qt resource file and make that part of your Python module. If you are unable to use Qt resource files, you will need to convert your relative...