Jul-22-2020, 02:31 PM
(This post was last modified: Jul-22-2020, 07:19 PM by SmukasPlays.)
I am creating a function to delete a row in SQlite3. It works, but the program just update what I've deleted when I close and run it again. There is anyway that I can do it without closing and opening again?
def exclude (self, *args, **kwargs): result = tkinter.messagebox.askyesno('Provedor', 'Deseja realmente deletar?', icon = 'warning') if result == True: deletar = "DELETE FROM inventory WHERE Name = ?" c.execute(deletar,(self.Name_e.get(),)) conn.commit()