DEV Community

Rocky Le
Rocky Le

Posted on

My first Tkinter project

Today I finish my first project using the Tkinter framework for my GUI. It is a simple program that allows the user to clean out their folders.
GUI Prompt

The user will be prompted to browse for a folder to clean and then the user must hit the clean button before they are given another prompt.
Gui prompt 2

Here the user has the option to simply delete everything in the folder (including the folder itself, but it'll be recreated) or to delete everything in the folder one at a time.
GUI prompt 3

Some things to note is although the window can be resized the inner frame of the window does not, clicking no to not a delete a file but then going back to delete everything all at once will result in said file still being deleted. If the user clicks the one at a time button and then right after clicks the all at once button everything will be deleted button the GUI will not refresh to show that it has been deleted.

Here is the repo if you wish to see how I did it. https://github.com/Rocky-Hoang-Le/filecleaner

Top comments (0)