0

help with widgets in tkinter

Well so i have this function verificarEdad and if edad(age) is greater than 18 it will destroy 2 widgets and changing the label to "you are older enough to..." and it gotta create a new button saying "continue" and calling a function when pressed,this function destroy the label and the button but the problem is that raise an nameError =""name 'botonContinuador' is not defined"" def verificarEdad(): if int(edad.get())>=18: labelEdad.configure(text="Sos valido para una cuenta") entryEdad.destroy() botonEdad.destroy() botonContinuador=Button(root,text="Continuar",command=continuar) botonContinuador.grid(row=1,column=0,pady=15,padx=15) elif int(edad.get())<18: labelEdad.configure(text="No tenes edad suficiente para una cuenta") entryEdad.destroy() botonEdad.destroy() def continuar(): labelEdad.destroy() botonContinuador.destroy() ...

21st May 2021, 9:10 PM
Yami Francø
Yami Francø - avatar
1 Réponse
+ 2
I am having trouble to read your code(indentation is not visible properly). Please re-edit your question and share your code through this method. https://www.sololearn.com/post/75089/?ref=app Rest leave on us, we will sure help you. Happy Coding 🙃
1st Jun 2021, 7:21 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar