I am creating a basic management system, made in python and tkinter, in which it already looks good visually, but when I am trying to create a def add_Residentes_no(self), and I paste it in this part that says Addbtn = Button(btn_frame, text =”Register”, width=10,command=self.add_Residentes_no).grid(row=0, column=0, padx=10, pady=20),
It tells me that the AttributeError: ‘UDI’ object has no attribute ‘add_Residentes_no’. Did you mean: ‘Residentes_no’?, but in the tutorial I’m following, the guy doesn’t get this error, does anyone know why that might be?
This is supposed to allow me to start connecting the database, but instead I got this error, which the def does not want to enter.
David y Leon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2