Try these questions to test your knowledge from this chapter:
- You want to use QMainWindow with the calendar_app.py script from Chapter 3, Handling Events with Signals and Slots. How would you go about converting it?
- You're working on an app and have added the submenu names to the menu bar but not populated any of them with items. Your coworker says that none of the menu names are appearing on his desktop when they test it. Your code looks correct; what is probably going on here?
- You're developing a code editor and want to create a sidebar panel for interacting with a debugger. Which QMainWindow feature would be most appropriate for this task?
- The following code isn't working correctly; it proceeds no matter what is clicked. Why doesn't it work, and how do you fix it?
answer = qtw.QMessageBox.question(
None, 'Continue?', &apos...