Tkinter show records with delete button and remove the row on user confirmation through message box

preview_player
Показать описание
01:00 Layout & previous tutorial
01:36 adding new code to extend the rows with delete button
06:42 Code with function to delete row
11:36 Demo with delete operation
12:24 Demo with refresh view to show the changes

Download the source code from here

Source code to display 10 records

Tutorial on how to show 10 records here
#DeleteButtonSQLite #SQLiteDeleteRow #SQLiteDeleteConfirm #DeleteRecord #UserConfirmation #DataDelete #plus2net #python #tkinter
Рекомендации по теме
Комментарии
Автор

We need to remove all widgets first before populating the rows. Just add these two lines inside the function at the beginning.

for w in my_w.grid_slaves():
w.grid_forget()

This will remove all widgets or rows before adding fresh rows. The function should be like this.

def my_show():
for w in my_w.grid_slaves():
w.grid_forget()
r_set=my_conn.execute('SELECT * FROM student LIMIT 25, 10')
continue next

plusnet
Автор

I'm not sure why but when I delete a row, a duplicate of the last row shows up and I have to reload the window in order for it to be fixed. Do you know why this might be happening?

brantheman
Автор

How to use weekday function to find particular weekday like Sunday from DOB

Batmannn