alyssaeliyah
alyssaeliyah

Reputation: 2244

Python TKinter - Retrieve all the ID of all elements in my canvas

How will I retrieve all the tag ID's of all the elements in my canvas Python Tkinter? ANy help would be very much appreciated.

Upvotes: 0

Views: 368

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 386210

To get the id of all of the elements on a canvas, use the find_all method:

id_list = the_canvas.find_all()

Upvotes: 1

Related Questions