After brainstorming for hours, we got frustrated trying to think of idea to work on at this hackathon. To take a break, we googled animal pictures and started looking at animal pictures to cheer ourselves up. It was then that we realized that this could be our hack idea.

What it does

Our app allows the user to view a random dog or cat photo that will hopefully brighten their day. If they still need cheering up, users can view more pics with a click of a button.

How we built it

We wrote two modules to access the APIs for the random dog and cat photos and imported them into a third module that implemented TkInter to code our functions and create the user interface of our app.

Challenges we ran into

One challenge we ran into was getting the image from the API and using TkInter to display it. Another challenge was getting the canvas to display the image after the button was clicked.

Accomplishments that we're proud of

We are proud of successfully requesting an image from an API, having the button perform properly, and displaying the images onto the window.

What we learned

We learned how to send URL requests to access data from an API, how to use some of the many functions of TkInter, and how to integrate a button and an image on the same window by implementing a canvas

What's next for Dog App

Future developments for our app include buttons for specified animal pictures, the option to flip through previously viewed photos, and a setting menu so the user is able to choose their own background color.

Built With

Share this project: