CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

Syling enhancement request

Open EN20M opened this issue 3 years ago • 3 comments

Could you add passing of the anchor argument into the CTkOptionMenu() and CTkComboBox() or any text containing widget so one can chose the justification

EN20M avatar Oct 18 '22 11:10 EN20M

@EN20M Ig only CTkLabel has the anchor parameter.

label = customtkinter.CTkLabel(master=frame, text="LABEL1", anchor='w')
label.grid(pady=10, padx=10)
label2 = customtkinter.CTkLabel(master=frame, text="LABEL2")
label2.grid(pady=10, padx=10)

Screenshot

Akascape avatar Oct 18 '22 14:10 Akascape

@Akascape I know and I am asking for this or a similar parameter getting exposed for the mentioned classes so one has the chance to decide where the text is displayed.

For the CTkComboBox its is as easy as passing the the anchor through to its internal use. But for the CTkOptionMenue neither anchor nor justify gets used internaly and I don't know if there is even a way to tell tkinter where to put the text for the classes used there.

EN20M avatar Oct 19 '22 07:10 EN20M

I added anchor attribute for optionemnu and justify attribute to combobox, will be available with the next release 5.0.0.

TomSchimansky avatar Oct 22 '22 12:10 TomSchimansky

Version 5.0.0 is now available and I will add an anchor option to switch, checkbox and radiobutton soon. https://github.com/TomSchimansky/CustomTkinter/issues/628

TomSchimansky avatar Dec 02 '22 22:12 TomSchimansky