Skip to content

Commit d07268e

Browse files
committed
update question editor dimensions and add quizzes
1 parent 6daeb2e commit d07268e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

quizcreator

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ mainWindow = sg.Window('Quiz Creator', mainWindowLayout, return_keyboard_events=
2323

2424
def make_questionEditorWindow():
2525
questionEditorLayout = [
26-
[sg.Text('Enter the question:'), sg.InputText(key='question', tooltip="Enter the question.")],
27-
[sg.Text('Enter the correct answer:'), sg.InputText(key='correct_answer', tooltip="Enter the answer.")],
28-
[sg.Text('Enter the wrong answers:'), sg.InputText(key='wrong_answers', tooltip="Enter some related but incorrect answers, separated by commas.")],
29-
[sg.Text('Enter the time given to answer:'), sg.InputText(key='time_given', tooltip="Enter an integer number of seconds. Average is 10-20.")],
26+
[sg.Text('Enter the question:'), sg.InputText(key='question', size=105, tooltip="Enter the question.")],
27+
[sg.Text('Enter the correct answer:'), sg.InputText(key='correct_answer', size=75, tooltip="Enter the answer.")],
28+
[sg.Text('Enter the wrong answers:'), sg.InputText(key='wrong_answers', size=100, tooltip="Enter some related but incorrect answers, separated by commas.")],
29+
[sg.Text('Enter the time given to answer:'), sg.InputText(key='time_given', size=3, tooltip="Enter an integer number of seconds. Average is 10-20.")],
3030
[sg.Button('Add'), sg.Button('Cancel')]
3131
]
3232

@@ -182,4 +182,4 @@ while True:
182182

183183
mainWindow["quizquestionentry"].update(questionList)
184184

185-
mainWindow.close()
185+
mainWindow.close()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"title": "The world of QuizMaster", "listOfQuestions": [{"question": "What is QuizMaster?", "correctAnswer": "An open source alternative to Kahoot", "wrongAnswers": ["Another name for Kahoot", "A programming language", "A mobile app"], "timeout": 15}, {"question": "What is the primary programming language QuizMaster is written in?", "correctAnswer": "Python", "wrongAnswers": ["JavaScript", "Java", "C++"], "timeout": 15}, {"question": "Who is the current owner of the QuizMaster repository?", "correctAnswer": "hermonochy", "wrongAnswers": ["octocat", "badguyland", "ShoweryCellar34"], "timeout": 15}, {"question": "What command is used to start the QuizMaster binary in Linux?", "correctAnswer": "./dist/quiz/quiz", "wrongAnswers": ["./quiz.py", "./run.sh", "./dist/quizmaster"], "timeout": 15}, {"question": "What of the following game modes are available in QuizMaster?", "correctAnswer": "Classic, Classic V2, Speed Run", "wrongAnswers": ["Classic, Speed Run, Battle", "Classic, Time Attack, Speed Run", "Classic, Survival, Speed Run"], "timeout": 15}, {"question": "What does the Classic game mode involve?", "correctAnswer": "Answering questions with a countdown timer", "wrongAnswers": ["Answering questions with no time limit", "Answering questions in a team", "Answering questions with hints"], "timeout": 15}, {"question": "What happens if you answer incorrectly in Speed Run mode?", "correctAnswer": "You must redo the question", "wrongAnswers": ["You continue to the next question like nothing happened", "The game ends", "You get a hint"], "timeout": 15}, {"question": "What can you customize in the preferences window?", "correctAnswer": "Song, volume, and background colour", "wrongAnswers": ["Questions, answers, and time limits", "Game modes, difficulty, and themes", "Profile, achievements, and settings"], "timeout": 15}, {"question": "What is QuizMasterLite?", "correctAnswer": "A smaller version of QuizMaster but still with a GUI", "wrongAnswers": ["An advanced version of QuizMaster", "A mobile app for QuizMaster", "A web version of QuizMaster"], "timeout": 15}, {"question": "What feature allows you to edit and make quizzes?", "correctAnswer": "Quiz Creator", "wrongAnswers": ["Quiz Maker", "Quiz Editor", "Quiz Builder"], "timeout": 15}, {"question": "What future feature is planned for QuizMaster?", "correctAnswer": "Web app version", "wrongAnswers": ["Voice control", "Virtual reality support", "Augmented reality integration"], "timeout": 15}, {"question": "How do you activate the virtual environment in Linux?", "correctAnswer": "source venv/bin/activate", "wrongAnswers": ["activate venv/bin/source", "venv/bin/activate source", "source activate venv/bin"], "timeout": 15}, {"question": "What method is used to update the TextInputVisualizer every frame?", "correctAnswer": "update(events)", "wrongAnswers": ["refresh(events)", "redraw(events)", "render(events)"], "timeout": 15}, {"question": "What does the QuizQuestion class do?", "correctAnswer": "Represents a quiz question with correct and wrong answers", "wrongAnswers": ["Manages the quiz game logic", "Handles user input during quizzes", "Generates random quiz questions"], "timeout": 15}, {"question": "What is the command to run QuizMaster in Windows?", "correctAnswer": "dist/quiz/quiz", "wrongAnswers": ["run.bat", "quiz.py", "quiz.bat"], "timeout": 15}, {"question": "How do you run QuizMasterLite on Linux?", "correctAnswer": "./quiz", "wrongAnswers": ["./quiz.py", "./run.sh", "./dist/quiz"], "timeout": 15}, {"question": "How do you run QuizMasterLite on Windows?", "correctAnswer": "python quiz", "wrongAnswers": ["python3 quiz", "py quiz", "run.bat quiz"], "timeout": 15}, {"question": "What is QuizMasterTerminal?", "correctAnswer": "A text-based terminal version of QuizMasterLite", "wrongAnswers": ["A graphical version of QuizMaster", "A mobile app for QuizMaster", "A web version of QuizMaster"], "timeout": 15}, {"question": "What command is used to clone the QuizMasterTerminal repository?", "correctAnswer": "git clone https://github.com/hermonochy/QuizMasterTerminal", "wrongAnswers": ["git clone https://github.com/hermonochy/quizmasterterminal", "git fetch https://github.com/hermonochy/QuizMasterTerminal", "git copy https://github.com/hermonochy/QuizMasterTerminal"], "timeout": 20}, {"question": "How do you run QuizMasterTerminal on Linux?", "correctAnswer": "./quiz.py", "wrongAnswers": ["./quiz", "./run.sh", "./dist/quiz"], "timeout": 15}, {"question": "How do you run QuizMasterTerminal on Windows?", "correctAnswer": "python quiz.py", "wrongAnswers": ["python3 quiz.py", "py quiz.py", "run.bat quiz.py"], "timeout": 15}, {"question": "What programming language is used for QuizMasterLite?", "correctAnswer": "Python", "wrongAnswers": ["JavaScript", "Java", "C++"], "timeout": 15}, {"question": "What programming language is used for QuizMasterTerminal?", "correctAnswer": "Python", "wrongAnswers": ["JavaScript", "Java", "C++"], "timeout": 15}, {"question": "What format are quiz files in QuizMaster-World?", "correctAnswer": "JSON", "wrongAnswers": ["XML", "CSV", "YAML"], "timeout": 15}, {"question": "How many versions of QuizMaster exist?", "correctAnswer": "5", "wrongAnswers": ["1", "2", "3", "4"], "timeout": 15}], "time given": "15"}

0 commit comments

Comments
 (0)