From the course: Python Projects: Create an Interactive Quiz Application

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Presenting the quiz

Presenting the quiz

- [Instructor] All right, we've now reached the moment where we can present the quiz to the user from our main application. So I've copied the pyquiz.py file here into the Start folder for chapter five. And I've copied it from the QuizApp Foundation folder. Remember when we worked on that back earlier in the course. So I've copied it into the chapter five folder and now we can start connecting things together and hooking stuff up. So let's open up pyquiz.py. All right, first, I'm going to make a couple of changes to the application file. I want to make the Quizzes folder location a constant value. So I have just one place to change it in the future. So I'm going to make that a class value up here. And then I'm going to create an instance of the quizmanager to be used within the app. And I'll do that here in the init function, so I'll call that qm. And I'll create a QuizManager instance, and I'm going to pass in the Quiz…

Contents