from tkinter import *
import speedtest
root=Tk()
root.geometry("320x250")
root.resizable(False,False)
root.title("Internet Speed Test")
root.config(bg='#E6E6FA')
Label(root,text="Internet Speed Test",font=("Arial,bold",22),
l1=Label(root,text="Download Speed :",font=("Arial,bold",15),bg='
l1.place(x=10,y=80)
ldspd=Label(root,text="",font=
ldspd.place(x=180,y=80)
l2=Label(root,text="Upload Speed :",font=("Arial,bold",15),bg='
l2.place(x=10,y=130)
luspd=Label(root,text="",font=
luspd.place(x=180,y=130)
def check():
spd=speedtest.Speedtest()
spd.get_servers()
dspd=str(round(spd.download() / (10**6),3)) + " Mbps"
uspd=str(round(spd.upload() / (10**6),3)) + " Mbps"
ldspd.config(text=dspd)
luspd.config(text=uspd)
btn=Button(root,text="Check",
btn.place(x=125,y=190)
root.mainloop()
Wednesday, November 8, 2023
Testing Internet speed
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment