DEV Community

MOOICT
MOOICT

Posted on

Python Tkinter Project - Make a Magic 8 Ball App

Hi Welcome to this new tutorial from MOO ICT. In this tutorial we will be making a small magic 8 ball style application using python and tkinter. This is a continuation tutorial on our Python Tutorial Series. For this application we will making this step by step in the video tutorial below. Before we start please make sure you have the PILLOW framework installed on your python. This framework allows us to use the ImageTk and Images function to load and display images to the Tkinter window.

Lesson Objective –

Make a Magic 8 Ball APP using python and Tkinter
Create functions and events and link them to the button and the entry box
Use various colours on the GUI in tkinter
Use OS library to loop through a folder and load the images to a list
Use lists and random to choose a random answer for the user input
Check user input and show error message if the entry box is empty
Bind Click button and Enter Key Event for the application

YouTube Tutorial

Download 8 Ball images/Source Code here

*See MOO ICT website or the YouTube Channel for more tutorials on this topic. *

Thank for checking this out and Happy Coding.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay