I am trying to build a gambling dice game for fun using Python's Tkinter in Python 3.  The error I am having is after the money is taken away from your bank account (it does this in a different function) I want it to go back to the mainloop.  So basically I want to exit a function to get back into the main code (which isn't in a function).  Any ideas on how?
The function should automatically stop when it is finished running. Using return, though, will immediately exit the current function, perhaps before it gets through all of its code, if that's what you mean.
Exit Function Into Main Code