Skip to content
Snippets Groups Projects
Commit 9bc4c8ba authored by bmois2's avatar bmois2
Browse files

Completed 7/21/24 at 3:30 PM

Should complete all tasks provided.
parent b9e00800
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ from kivy.properties import BooleanProperty, ListProperty ...@@ -6,6 +6,7 @@ from kivy.properties import BooleanProperty, ListProperty
from kivy.modules import inspector from kivy.modules import inspector
from kivy.core.window import Window from kivy.core.window import Window
from kivy.properties import NumericProperty from kivy.properties import NumericProperty
from kivy.uix.progressbar import ProgressBar
GUI_QUESTIONS = [ GUI_QUESTIONS = [
...@@ -79,6 +80,7 @@ class QuizzerApp(App): ...@@ -79,6 +80,7 @@ class QuizzerApp(App):
score = NumericProperty(0) #score score = NumericProperty(0) #score
total = NumericProperty(0)#total questions total = NumericProperty(0)#total questions
def build(self): def build(self):
inspector.create_inspector(Window, self) inspector.create_inspector(Window, self)
......
...@@ -70,6 +70,7 @@ ScreenManager: ...@@ -70,6 +70,7 @@ ScreenManager:
name: 'quiz' name: 'quiz'
BoxLayout: BoxLayout:
orientation: 'vertical' orientation: 'vertical'
Button: Button:
text: 'Change Topic' text: 'Change Topic'
size_hint: (1, 0.25) size_hint: (1, 0.25)
...@@ -77,6 +78,9 @@ ScreenManager: ...@@ -77,6 +78,9 @@ ScreenManager:
on_press: on_press:
root.transition.direction = 'right' root.transition.direction = 'right'
root.current = 'settings' root.current = 'settings'
ProgressBar:
max: 5
value: app.total
# here # here
BoxLayout: BoxLayout:
orientation: 'horizontal' orientation: 'horizontal'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment