my only problem is that i made a program which gets all the data from the sql database, but when i am changing for example a value or a name of something on my table , the new "update" i made on the table is not showing , it still shows me the previous data. So i need to know , how can i automatically update the shown data of the program when i am changing something.
This is what i made as a command for the button of "update sql"
def update_infos_whitemat(self):
update_whitemat_name = aoracandlestudiodb.cursor()
getname = self.name_whitemat_entry.get()
if getname != '':
updatename = "UPDATE aoracandlestudiodb.items SET _name= '%s' WHERE iditems='1';"%getname
update_whitemat_name.execute(updatename)
aoracandlestudiodb.commit()
else:
pass