i was trying to make an ui for the user to add a book if the book is added it says 'book added' but when i add another book afterwards it stays the same. so i thought i could make it like it refreshed if i .setText('') to an emplty string and then do time.sleep(0.1) but the label didn't become empty and back to 'book added' it stayed the same.please help
f = open('book.dat', 'ab')
b = book(book_name, book_code, book_writer)
dump(b, f)
f.close()
app.res.setText('')
sleep(0.1)
app.res.setText('book added')