CustomTkinter
CustomTkinter copied to clipboard
align text inside textbox
How can i align my text inside textbox? (justify don't works)
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()
Thx for your help ! But not really... I want something like this :
Note that here, i manualy put spaces to make it look like the text is centered.
There is a padx argument for text box so there should be some way to do it