Skip to content

Commit 8f8f192

Browse files
Update README.md
1 parent 9ca8d4b commit 8f8f192

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Typing Test Game/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,35 @@ Write the command given below to install Tkinter on your system.<br>
2323
a. words: words is another file that contains a list of words that will be displayed on the screen.<br>
2424
b. random: It helps in generating random strings and numbers.<br>
2525
c. messagebox: It helps in displaying a message box on the screen.<br>
26+
27+
### 3. Initializing test window and variables:
28+
![image](https://user-images.githubusercontent.com/61057666/147369763-25cfbb27-9407-4eb2-8d54-27abe4dd235f.png)
29+
30+
### Code Explanation:
31+
32+
a. Tk(): It helps in initializing the tkinter module.<br>
33+
34+
b. geometry(): It defines the geometry of the typing test window.<br>
35+
36+
c. title(): It displays the title on the top of the typing test window.<br>
37+
38+
d. bg: It helps in applying the background color of the typing test window.<br>
39+
40+
e. Score: It is a variable that stores the score.<br>
41+
42+
f. Missed: This variable stores all the misspelled words entered by the user.<br>
43+
44+
g. time: This variable stores the time allotted to complete the test.<br>
45+
46+
### 4. Function for making the text float on the top of the window:
47+
![image](https://user-images.githubusercontent.com/61057666/147369777-3ceb5352-a860-431a-8f34-7ac1c49ba9cc.png)
48+
49+
### Code Explanation:
50+
51+
a. movingtext(): This function will help the text to move on the top of the screen.<br>
52+
53+
b. floatingtext: This variable stores the text that needs to be floated.<br>
54+
55+
c. configure(): Overwriting over a label widget is performed by configure().<br>
56+
57+
d. after(): This method schedules an action after a timeout has elapsed.<br>

0 commit comments

Comments
 (0)