
Creating my First GUI Application using Python We will learn • Creating GUI Window in python: Tkinter • Using nested loops • Playing sound in python How this program works ( General Logic )–––– Problems Faced––– I wanted a GUI program, so I used Tkinter, but the timer variable(stime) was not updating causing no output in the GUI window. So, I used the update() function in Tkinter to update ‘stime’, every time I set the value to stime in the loop. Program: –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– from tkinter import * import time import playsound self = Tk() # setting the title for our window self.title("Excercise Timer") #configuring background colour for our window self.configure(bg="black") #creating a variable basically this is our timer label stime = StringVar() #setting the initial value of the variable stime.set("00") #function def func(): nsets = int(setsVar.get()) #getting values from the sets entry wt ...