Skip to content

Conversation

@Nerogar
Copy link

@Nerogar Nerogar commented Nov 11, 2023

This fixes an exception that occurs after destroying a CtkEntry with a text variable and then updating that text variable.

trace_add is called when the entry is created, but trace_remove was never called.

The exception was
_tkinter.TclError: invalid command name

@FedericoSpada
Copy link
Collaborator

Hi,
it is also missing the proper management when the textvariable is replaced using the configure() method. Can you add it by copying what has been done for the other widgets?

While you are at it, can you replace the "textvariable" name for CTkEntry with just "variable"?
"textvariable" has been used in other widgets to dynamically change the fixed text that describes the content of the widget, not the actual value that the user can change. For this value, the other widgets always use the "variable" parameter.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants