Skip to content

name support for CTkEntry, CTkLabel, CTkTextbox#422

Closed
jericjan wants to merge 1 commit into
TomSchimansky:masterfrom
jericjan:master
Closed

name support for CTkEntry, CTkLabel, CTkTextbox#422
jericjan wants to merge 1 commit into
TomSchimansky:masterfrom
jericjan:master

Conversation

@jericjan

Copy link
Copy Markdown

When you give either CTkEntry, CTkLabel, or CTkTextbox the name argument, the path names for those widgets become something like .frame.!ctklabel, with a child widget that has the actual name like .frame.!ctklabel.my_widget_name This is a possible fix for that.

@TomSchimansky

Copy link
Copy Markdown
Owner

I will look into this for version 5.1.0

@octimot

octimot commented May 31, 2023

Copy link
Copy Markdown

I've added the name attribute for Button, Frame and BaseClass in a new pull request #1676

@jericjan Was there a reason why you chose to implement name=name directly in the signature of the __init__ functions and you went the kwargs route?

Cheers!

@jericjan

jericjan commented Jun 2, 2023

Copy link
Copy Markdown
Author

@octimot Just bad coding habits, I suppose. Yours looks way simpler and better than mine lol.

@FedericoSpada

Copy link
Copy Markdown
Collaborator

Same change as in #1676, but I prefer how it has been implemented there.

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.

4 participants