From 9bc4c8ba83d691f634057710463e972cbbeaff4c Mon Sep 17 00:00:00 2001 From: bmois2 <bmois2@huskers.unl.edu> Date: Sun, 21 Jul 2024 15:30:04 -0500 Subject: [PATCH] Completed 7/21/24 at 3:30 PM Should complete all tasks provided. --- main.py | 2 ++ quizzer.kv | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/main.py b/main.py index a9f6a15..de4abcd 100644 --- a/main.py +++ b/main.py @@ -6,6 +6,7 @@ from kivy.properties import BooleanProperty, ListProperty from kivy.modules import inspector from kivy.core.window import Window from kivy.properties import NumericProperty +from kivy.uix.progressbar import ProgressBar GUI_QUESTIONS = [ @@ -79,6 +80,7 @@ class QuizzerApp(App): score = NumericProperty(0) #score total = NumericProperty(0)#total questions + def build(self): inspector.create_inspector(Window, self) diff --git a/quizzer.kv b/quizzer.kv index 8bf9045..7a1cae3 100644 --- a/quizzer.kv +++ b/quizzer.kv @@ -70,6 +70,7 @@ ScreenManager: name: 'quiz' BoxLayout: orientation: 'vertical' + Button: text: 'Change Topic' size_hint: (1, 0.25) @@ -77,6 +78,9 @@ ScreenManager: on_press: root.transition.direction = 'right' root.current = 'settings' + ProgressBar: + max: 5 + value: app.total # here BoxLayout: orientation: 'horizontal' -- GitLab