Apr-11-2022, 11:35 AM
Hello,
is there a way to show the progress bar using PySimpleGUI, while the script is running, no use with a for loop in the script, just showing the progress bar as long as the script is doing whatever ever asked, Thx!
See referred code I have in here :
is there a way to show the progress bar using PySimpleGUI, while the script is running, no use with a for loop in the script, just showing the progress bar as long as the script is doing whatever ever asked, Thx!
See referred code I have in here :
import PySimpleGUI as sg def gui(): sg.theme("Dark Teal 7") layout = [ [sg.Text("""Hello """ + os.getlogin() + """, to run the loader click GO!""", size=(30, 3))], [sg.Submit('GO'), sg.Cancel()], ] window = sg.Window("MyLoader", layout) window_output = window.read() window.close() if window_output == ('GO', {}): #here to start the progress bar untill what below asked finished