GUI Based Internet Speed Test Using Python With Source Code

Introduction:
python language is one of the most preferred programming languages in today’s scenario of the data science field. Because of its simple syntax and vast libraries/packages/modules, implementing various applications/programs/codes is very handy.
Explanation:
GUI is one of the best interfaces for a user to interact with a machine/computer. Python support Tkinter library/packages/module for implementing the GUI-based application/program/code.
The given below is the code for implementing the “GUI-Based Internet Speed Test” application/program:
The libraries/packages/modules used in this code are as follows:
tkinter: This package is used for developing graphical user interfaces (GUIs) in python.
speedtest: This package is used to test network bandwidth using speedtest.net servers
Installation:
$ pip install speedtest-cli
Run this command on your terminal to install the speedtest python module.
Source Code:
Get Discount on Top Educational Courses
# Importing Libraries Required For Code
# codewithcurious.com
from tkinter import *
from speedtest import Speedtest
# Creation OF Function
def update_text():
speed_test = Speedtest()
download = speed_test.download()
upload = speed_test.upload()
download_speed = round(download / (10**6), 2)
upload_speed = round(upload / (10**6), 2)
down_label.config(text= "Download Speed - " + str(download_speed) + "Mbps")
up_label.config(text= "Upload Speed - " + str(upload_speed) + "Mbps")
# Creation OF GUI
window = Tk()
window.title("Internet Speed Testing")
window.geometry('420x250+250+150')
button = Button(window, text="Press Here to Check Speed", width=50, command=update_text,background = '#49A')
button.pack()
down_label = Label(window, text="")
down_label.pack()
up_label = Label(window, text="")
up_label.pack()
# Closing of GUI
window.mainloop()
Output:

Find More Projects
MathGenius Pro – AI-Powered Math Solver Using Python Introduction: From simple arithmetic to more complicated college-level subjects like integration, differentiation, algebra, matrices, …
CipherMaze: The Ultimate Code Cracking Quest Game Using Python Introduction: You can make CipherMaze, a fun and brain-boosting puzzle game, with Python …
Warp Perspective Using Open CV Python Introduction: In this article, we are going to see how to Create a Warp Perspective System …
Custom AI Story Generator With Emotion Control Using Python Introduction: With the help of this AI-powered story generator, users can compose stories …
AI Powered PDF Summarizer Using Python Introduction: AI-Powered PDF Summarizer is a tool that extracts and summarizes research papers from ArXiv PDFs using Ollama (Gemma 3 LLM). The …
AI Based Career Path Recommender Using Python Introduction: One of the most significant and frequently perplexing decisions in a person’s life is …