Its frustrating because I dont even get an error code. I coded the last function in a seperate program without a GUI and it runs fine so I have no clue what the problem can be. Any help would be much appreciated.
Since this never exits the screen never refreshes to allow the user to
enter a new value in the guess_ent box.
loops inside event handling methods are always risky and should be
avoided if at all possible. Open ended while loops are especially prone
to non termination. If you need to process something repeatedly its
usually better in a GUI program to do it via a timer event that
continually calls the function. (Or using a background thread but thats
a whole different can of worms)
But in this case the whole while loop is completely redundant. Tkinter
provides an event loop, you just need to handle one guess at a time and
let the user press submit each time.
If you really are crashing please run the code from inside an OS console
and capture the stack trace and send it to us.