CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

align text inside textbox

Open Gaeritag opened this issue 11 months ago • 3 comments

How can i align my text inside textbox? (justify don't works)

Gaeritag avatar Mar 10 '24 14:03 Gaeritag

Do you mean this:

import customtkinter 

root = customtkinter.CTk()

tetbox = customtkinter.CTkTextbox(root,font=("roboto",30))
tetbox.insert(index=customtkinter.END,text="Hello, World!")
tetbox.pack(padx=10,pady=10,expand=True,fill='both')

root.mainloop()

FaheemM1020 avatar Mar 12 '24 03:03 FaheemM1020

Thx for your help ! But not really... I want something like this : image Note that here, i manualy put spaces to make it look like the text is centered.

Gaeritag avatar Mar 12 '24 19:03 Gaeritag

There is a padx argument for text box so there should be some way to do it

FaheemM1020 avatar Mar 13 '24 03:03 FaheemM1020