diff --git a/main.py b/main.py index a9f6a154faced3294411dca7392b55d55518d2ef..de4abcd7a246e6a26b269595e87772810e6479f0 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 8bf9045ad1287b9c95aaa9472b294d7203c3689b..7a1cae3390f29cc7369bba64d1ca471d04a2e08b 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'