I am trying to make a basic gui in tkinter for one of my python scripts. I have gotten it to work but I need a way for the user to break the main loop of the script by clicking a button. The loop is a for loop looping through a very long list. I need to be able to break this loop and close the gui. I have tried using the after function but I must not be using it right. If anyone can show me how to do this I would appreciate it. Thanks in advanced.
matt_pds 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.