tkinter gui wifi speed

Solutions on MaxInterview for tkinter gui wifi speed by the best coders in the world

showing results for - "tkinter gui wifi speed"
Ernest
19 Oct 2016
1from tkinter import *
2from speedtest import Speedtest
3
4app = Tk()
5# The title of the project
6app.title("The title of the project")
7# The size of the window
8app.geometry("200x200")
9
10# Defining a funtion
11def c():
12    st = Speedtest()
13    print("Download:=>", st.download())
14    print("upload:=>", st.upload())
15    st.get_servers([])
16    print("Ping :=>", st.results.ping)
17   
18
19l = Button(app, text="Ping display, Download Display, Upload display", command=c())
20# Packing the Button
21l.pack()
22app.mainloop()
23# Quick Note : 
24# When you put a command you should not use parentheses
25# l = Button(app, text="The text of the Butoon", command=c)
26# l = Button(app, text="The text of the Butoon", command=c())
27
28
similar questions
queries leading to this page
tkinter gui wifi speed