Mar-25-2020, 09:35 PM
You are referring to a global screen_numbers from within a function so it is looking for a variable in the function, which there isn't.
The best is to give the variable to the function as an argument and have it return the answer.
The best is to give the variable to the function as an argument and have it return the answer.
screen_numbers = Text(screen_topside, height='fill', width='fill') def one(screen_numbers): screen_numbers = screen_numbers + '1' return screen_numbers new_screen_numbers = one(screen_numbers)