Feb-06-2019, 02:23 PM
(This post was last modified: Feb-06-2019, 02:23 PM by aniyanetworks.)
Hello Experts,
Need small suggestions, bellow my script does enable the Wi-Fi interface. But i would like to add,
If someone clicks the button then a progress bar will appear and it will run for 60 secs and after 60sec it will disappear.
Please advice me how can I achieve this goal.
Thank you in advance
Need small suggestions, bellow my script does enable the Wi-Fi interface. But i would like to add,
If someone clicks the button then a progress bar will appear and it will run for 60 secs and after 60sec it will disappear.
Please advice me how can I achieve this goal.
Thank you in advance
import subprocess from tkinter import * window= Tk() def wifiOnscript(): subprocess.call(['netsh', 'interface', 'set', 'interface', 'Wi-Fi', 'enabled']) wifiOnButton=Button(window,text="WiFi-ON",command=wifiOnscript, height=1, width=22) wifiOnButton.grid(row=2,column=0,padx=40, pady=10) window.mainloop()I just to add the following script to my button, how can i do this?
pb = ttk.Progressbar(root, orient="horizontal", length=200, mode="determinate") pb.pack() pb.start(50)