Nov-23-2019, 03:45 PM
(Nov-23-2019, 01:49 AM)Larz60+ Wrote: I see where you define the new buttons, but not the first one. Also, you want to include code in NewLiveBet to make sure you don't try to recreate two already created Buttons. or delete the existing ones before recreating.
I found a way to fix it. I added "lambda" before calling the new functions in the button commands. So the button's code looks like this now:
button = Button(window, text='I am a button', command=lambda:buttonClickedFunction)