How to integrate an image to my CRUD form in tkinter? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

How to integrate an image to my CRUD form in tkinter?

Hello guys, I have a CRUD form which is working properly, but I want to add the option to insert an image which can work with my CRUD buttons, I'm using SQLite to store my CRUDs entries data. I've heard about BLOB which can store photos in my sqlite database or it's bettert to save the photos in my folder?. thanks in advance

7th Mar 2021, 8:25 PM
PolChe
4 Réponses
0
iTech my bad, I forgot to mention that I know how to add images in tkinter, but I want to know how to use it with my CRUD form
7th Mar 2021, 11:17 PM
PolChe
0
did u tried widget.get() and widget.delete() methods?
7th Mar 2021, 11:23 PM
iTech
iTech - avatar
0
or smth like that #add image button def add_image(): label.config(image= tkinter.filedialog.askopenfilename()) #clear image button def clear_image(): label.config(image="" )
7th Mar 2021, 11:29 PM
iTech
iTech - avatar