This project was very challenging for me. I had some experience with Tkinter when I started this project which is what this is built in, but the moment I hit the issue of having to pass variables between different windows I got stuck. I ended up taking a break for a few weeks as I got developers block over this and I did not feel up to being able to tackle the issue - but eventually I got there and I learned a tonne while doing it!
This project is an image watermarker, where you can select a photo from your computer and upload it, and then you can add text to it and it will save a new copy with your text "watermark" on it. The way this project works is I have defined different windows in classes, with one being the master of the other. When the secondary class is created the variables are passed through to it during the creation. I had little experience with classes so this took me a LONG time to get my head around while building it. I feel like this was a big growth moment for me with my level of skill in python and using classes.
One challenge I had was getting the photo to show only at a certain size in my program - so if you had a really large photo I didn't want it to show it too large on the screen, however I didn't want to see a size in case different images had different dimensions and I didn't want them forced to one size. I ended up achieving this by using the tkinter function of thumbnail, which allows you to see a maximum size for the image without forcing all images to be the same size.
One small part of the code I was particularly happy with was the part where the window ensures its in the same place as the previous window - the way it does this as it uses winfo functions to find the current size and location of the first window, and it uses these to set the size and location of the second window - so when you change windows you can't tell as the new one is in the exact same location and is the same size! This made me super proud to figure out and was a small achievement moment for me.
Overall this project went well, in future I would like to be able to add an image as a watermark as well as just text, and to be able to have the user select the location, font, colour etc of the watermark that is added.