def dodaj_student(self):
self.db_conn.execute("INSERT INTO Students (FName, LName, Telefon, Wiek, PName)" +
"VALUES ('" +
self.imie_entry_value.get() + "', '" +
self.nazwisko_entry_value.get() + "', '" +
self.telefon_entry_value.get() + "', '" +
self.wiek_entry_value.get() + "', '" +
self.imierodzica_entry_value.get() + "')")
该功能已连接到按钮。点击时,正在发生error
。
它显示错误:
AttributeError: int object has no attribute execute