Inspiration

Our inspiration was observing many people of our age who really need to actually start studying to get into university, playing video games when they really should be doing their homework. That's why we made this program to stop the urge to play video games. We also read a bit of information on Indeed that told us what makes a good work ethic

What it does

This program was built for LyonHacks II and the theme for this project is self improvement. This program is essentially an aggressive agenda that keeps you on task. On program startup, the program asks the user to put away any physical distractions and prepare for the day. The program allows the user to schedule tasks for the day. When a task is starting, ending, or almost ending, the program will send popup messages to the user to prompt them to begin their task or warn them. People with a good work ethic produce great work so the warning messages also tell them to check over their work again and not to rush important projects. If a task is currently active, the program will monitor the user and terminate any video games that are opened up. When this happens, the program will send a message to tell the user to get back to work.

How we built it

We used Tkinter to make the GUI, simpleaudio to play music, and psutil to monitor processes. We started by creating a project in Replit. Our first task was to get the basic GUI created, then we added task adding functionality, then we created a thread that would run something to monitor active tasks and shut down video games, and lastly, we added some style changes to make it look better. We also used VS code to test the code on Windows.

Challenges we ran into

Getting the check buttons to properly function and be linked to a task was difficult We also had some problems with audio and getting the music to reliably play We had problems with the images and getting them to display properly It was hard to verify the exact names of the video game executables

Accomplishments that we're proud of

Creating a fully functional program with a GUI in only 2 days Creating the part that reliably searches for and terminates video games Creating the sorting algorithm Creating the part that can actively monitor for ongoing tasks and send messages Creating the images for the program

What we learned

We all learned Tkinter for the first time We learned more about threads We learned more about windows commands We learned about getting music to play using python

What's next for Distraction Destroyer

Implement versions for MacOS and Linux Implement a Discord bot that works together with the program to ask if the user is really using discord for work purposes and if not start sending rick rolls. Implement a feature that allows the user to add the executable file names of video games to target more video games

Built With

Share this project:

Updates