Inspiration
This is a very subdued version of something that I had wanted to do using the datasets we had been provided, but I couldn't get it to work. The goal was to minimize damage to an individual by quickly identifying what was causing pain, and helping people take action to lessen any damage caused by improper handling of oneself.
What it does
Leads the user through a predetermined tree of questions to a short info-bit, and two websites relevant to their choices.
How I built it
I used Python as my language, and functions for the majority of the program. These allowed the calling of other functions and events without having a really long "if" statement.
Challenges I ran into
The change from one idea to another was the first issue, but after I began on Injury Assistant, the biggest challenge was figuring out which variables needed to be called as global and where (since functions need to have global variables imported). In addition, tkinter tends to forget images if they are called inside of a function, so I had to program around this issue.
Accomplishments that I'm proud of
Making my project usable was the first accomplishment. The tree structure was the grand challenge in the end however, as it is fairly large and complex. Once everything fit together and I was able to flush out the ease of use, I felt much better about it.
What I learned
Global variables are confusing, always have a plan B and potentially a plan C, and never doubt the usefulness of online learning services.
What's next for Injury Assistant
Better graphic design and more varied questions. I also noted later on that while I reference bones in the end caps of the tree, I don't mention them in other areas where they could be an important factor in determining the cause of pain.
Built With
- python
- tkinter