Skip to content

Commit 8473122

Browse files
authored
Add files via upload
Internet speed checker using python using library pyspeedtest
1 parent 9085bb0 commit 8473122

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

InternetSpeedChecker.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from tkinter import *
2+
from tkinter import messagebox
3+
import pyspeedtest
4+
5+
6+
def one():
7+
speed = pyspeedtest.SpeedTest("www.google.com")
8+
a1 = (str(speed.download())+"[Bytes per Second]")
9+
messagebox.showinfo("your download speed is", a1)
10+
11+
12+
root = Tk()
13+
root.title(" INTERNET SPEED CHECKER")
14+
root.config(bg="blue")
15+
16+
root.geometry('500x250')
17+
18+
label1 = Label(root, text=" Internet Speed Checker",
19+
font=("Italics", 30, "bold"), bg="light pink").pack()
20+
button1 = Button(root, text="Click", font=(
21+
"Arial", 20, "bold"), bg="lightblue", height=1, width=10, command=one).pack()
22+
root.mainloop()

0 commit comments

Comments
 (0)