I made a typing program in tkinter - you push start, run a typing test for 1 minute, and it will tell you yours WPM. If you are a highscore it will allow you to add your name and save this to the csv of highscores which is loaded when the program runs, so these scores are saved every time you open the program! This project was a lot of fun and I really enjoyed customizing it. Parts of my code were inspired from similar projects, but I ended up writing a big chunk of some complex code totally by myself to achieve some really clever things.
I was very proud of my highscore page and entry. This reads and writes from a csv, and it uses a loop to create the labels of the highscores and placing them on the screen. The name and button for entering a highscore only appears if your score is higher than one of these or if the list is less than 5 long. It will add your score, then sort the list by highest to lowest, drop any entries after 5 and resave the list - so only the top 5 scores are kept each time a new score is added - I was very happy with how I got this to work and it was 100% code written by me! Big win for me
I love the way the test looks. The way the line goes red when a answer is wrong, and the 3 second countdown I was happy with. This program was an upgrade on the previous one. Instead of using classes to define windows I defined one controller object and then the rest of the windows are frames. Any shared variables are stored within the controller and therefore all the frames can call on them (such as a variable showing if the test is running or not, and a the variable showing the calculated typing speed)
In future I would like to improve the look of the buttons, and I would like to add functionality for counting mistakes for an even harder mode! There was quite a few little challenges through this project, like figuring out how long tkinter takes before it auto refreshes and making sure it didn't duplicate my widgets, figuring out why if widgets use "place_forget()" they didn't replace correctly (they needed a manual refresh() on replace), and ensuring when the high score page or test page is shown it resets and is updated to the refreshed state.
I feel like this project really made me understand classes, passing variables, and how tkinter can work with frames and a controller - an upgrade on the different strategy I took with the last project. I was really happy with how this one turned out!