Skip to content

Comments

name support for CTkEntry, CTkLabel, CTkTextbox#422

Closed
jericjan wants to merge 1 commit intoTomSchimansky:masterfrom
jericjan:master
Closed

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

Conversation

@jericjan
Copy link

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
Owner

I will look into this for version 5.1.0

@octimot
Copy link

octimot commented May 31, 2023

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
Copy link
Author

jericjan commented Jun 2, 2023

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

@FedericoSpada
Copy link
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