I am new and learning python 3.6 and I've almost completed my first code project. After doing an exhaustive search to resolve my problem I have not been able to find the answer to what I am sure is a simple oversight.
Program premise: A user enters a URL and also clicks in a checkbox for the time frame to call the url. The user then clicks the start button and the program begins to open the url in a timeloop according to the checkbox(time) selected. This is working fine... however once the program has started the buttons are no longer active and do not work, they are not able to be clicked. I have used tkinter for the gui.
I am trying to keep 2 buttons active for the user. The Quit button, which quits the function of the program and the Exit button that exits and closes the program completely.
A point in the right direction would be appreciated.
Current sleep() code used:
def execute():
execute = urllib.request.urlopen(url.get()))def Time():
if CheckVar1.get() and url.get():
timeloop = True
Sec = 0
Min = 0
timeLoop = A
while timeLoop:Sec += 1execute()time.sleep(300)
I hope this helps make my question a little easier to follow. I believe that I might need to find another way to do what this is doing so that the loop allows the other parts of the program (buttons), to remain active so a user can Quit or Exit the program once it is running. Note: CheckVar1.get() is to verify if the checkbox has been selected for that time frame, there are 8 different time settings being used.