|
1 |
| -### Project File Structure |
2 |
| -1. Install Tkinter <br> |
3 |
| -2. Importing Libraries<br> |
4 |
| -3. Initializing test window and variables<br> |
5 |
| -4. Function for making the text float on the top of the window<br> |
6 |
| -5. Function for calculating time<br> |
7 |
| -6. Game Function<br> |
8 |
| -7. Defining labels<br> |
| 1 | +### Typing Test Python Project |
| 2 | +Typing test is very useful as it helps in improving your typing speed and accuracy. This Python project will help you to develop your own typing test by following the procedures mentioned below.<br> |
9 | 3 |
|
10 |
| -### 1. Install Tkinter: |
11 |
| -Tkinter is a standard graphical user interface library that is available for python. You need to install Tkinter to begin the project. |
12 |
| -Write the command given below to install Tkinter on your system.<br> |
13 |
| -`pip install tkinter` |
| 4 | +### About Typing Test Project |
| 5 | +In this project, we will develop a typing test that will help in improving your speed and accuracy. The user will be given 60 seconds and the user has to write as many words as possible that are displayed on the screen within the given time frame. After completion of time the final score will be displayed to the user along with the number of wrong words entered.<br> |
14 | 6 |
|
15 |
| -### 2. Importing Libraries: |
16 |
| -`from words import words`<br> |
17 |
| -`from tkinter import *`<br> |
18 |
| -`import random` <br> |
19 |
| -`from tkinter import messagebox` |
| 7 | +### Python Typing Test Project |
| 8 | +The objective of the project is to develop our own typing test with the help of tkinter.<br> |
20 | 9 |
|
21 |
| -### Code Explanation: |
| 10 | +### Project Prerequisites |
| 11 | +To begin the project you should install pygame on your PC. This project requires the knowledge of functions in python and pygame.<br> |
22 | 12 |
|
23 |
| -a. words: words is another file that contains a list of words that will be displayed on the screen.<br> |
24 |
| -b. random: It helps in generating random strings and numbers.<br> |
25 |
| -c. messagebox: It helps in displaying a message box on the screen.<br> |
26 |
| - |
27 |
| -### 3. Initializing test window and variables: |
28 |
| - |
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 |
| - |
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> |
| 13 | +Credit - [Data Flair](https://data-flair.training/blogs/python-typing-test/) |
0 commit comments