I made a program where one must enter a string into an entry box. After one clicks the enter button, the program will get the string from the entry box and combine it with another string to create a final string. When one clicks the enter button, it sets a boolean value to true, letting the program know it is ready to create the final string. However, I cannot find a way to check if the boolean value is true. What I need is a way to keep checking if the boolean value is true. Once it is true, the code must run. The window must all show.
First I tried while value == False: pass
, but that never displayed the tkinter window and displayed no error message.Next I tried using the waiting module, but had the same outcome.After that I tried if value == True:
While this did show the tkinter window, the code after the if function did not run. I'm guessing that this is because the code had already checked that the value was False (before I clicked enter), and called it a day.