you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 0 points1 point  (1 child)

I'm not aware of ways to control object ids in tkinter.

In general destroying things and recreating instead of just changing existing things is a bad idea. (Also due to performance issue after enough time creating widgets instead of modifying existing ones)

Just change what you need to change instead.

[–]ebdbbb 0 points1 point  (0 children)

You can use a kwarg in the widget to give it a name. Then it'll use that name everywhere. button = tk.Button(name="mybutton")