Feature: Selectable Text Length and Test D…#74
Open
adithyen wants to merge 4 commits into
Open
Conversation
Owner
|
Hey!there is merge conflict here, please resolve it as soon as possible |
Contributor
Author
Hey @FOSSCLUB-LBSITW can you check whether this is fine for merging without any issues or not |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Description
Brief description of what this PR does.
Add selectable test duration and text length/difficulty settings
🔗 Related Issue
Closes: #64
New UI Controls (
settings_frame)ctk.CTkOptionMenu): lets the user choosebetween 15s, 30s, 60s (default), and 120s before starting a test.
ctk.CTkOptionMenu): lets the user choosebetween Short Sentence, Paragraph, and Long Text difficulty
tiers.
Expanded Text Pools (
TEXT_POOLS)Logic Updates
start_test()duration_varand applies it toself.test_duration; disables settings menus during a test.begin_test()text_length_varand picks a random text from the matching pool.update_timer()self.test_durationinstead of the oldTEST_DURATIONconstant.on_duration_change()check_result()720×580→750×680to accommodate the new settings row.Removed / Replaced
TEST_DURATIONglobal constant → replaced byDEFAULT_DURATION(used only as the initial fallback).
SENTENCESflat list → replaced by theTEXT_POOLSdictionary.📷 Screenshots (if applicable)
✅ Checklist