Make your own internet checker using python
Welcome to make own internet checker
This is your own internet checker using python. You import tkinter module.
This program takes few minutes. So, please passions.
import tkinter
import speedtest
from tkinter import *
def speedcheck():
Sp = speedtest.Speedtest()
Sp.get_servers()
down = str(round(Sp.download()/(10**6),3))+" Mbps"
up = str(round(Sp.upload()/(10**6),3))+" Mbps"
lab_down_val.config(text=down)
lab_up_val.config(text=up)
sp = Tk()
sp.title(" Internet Speed Test ")
sp.geometry("500x700")
sp.config(bg="light green")
lab = Label(sp,text="Internet Speed Test",font=("Time New Roman", 30,"bold"),bg="light green",fg="red")
lab.place(x=60,y=40,height=50,width=380)
lab_down = Label(sp,text="Download Speed",font=("Time New Roman", 30,"bold"))
lab_down.place(x=60,y=130,height=50,width=380 )
lab_down_val = Label(sp,text="00",font=("Time New Roman", 30,"bold"))
lab_down_val.place(x=60,y=200,height=50,width=380)
lab_up = Label(sp,text="Upload Speed",font=("Time New Roman", 30,"bold"))
lab_up.place(x=60,y=290,height=50,width=380)
lab_up_val = Label(sp,text="00",font=("Time New Roman", 30,"bold"))
lab_up_val.place(x=60,y=360,height=50,width=380)
button = Button(sp,text="Check Speed",font=("Time New Roman", 30,"bold"),relief=RAISED,bg="light blue",command=speedcheck)
button.place(x=60,y=500,height=50,width=380)
sp.mainloop()
Comments