Home > Mobile >  Tkinter Python - How to delete blank in label
Tkinter Python - How to delete blank in label

Time:07-29

I have an issue with a label on tkinter. I would like to know if it's possible to "occupy space", when I insert long text my label become huge and I have a lot of blank around my text. Is it possible to delete this blank ?

action=customtkinter.CTkLabel(master=frame_right, width=400, height=150, text="", justify=tkinter.LEFT,  text_font=("Roboto Medium", -10), fg_color="white")
action.grid(row=4, column=2, padx=15, pady=15,  sticky='')

screenshot

CodePudding user response:

I finally resolved my problem, I replaced this

frame_right.columnconfigure((0, 1), weight=1)
frame_right.columnconfigure(2, weight=0)

by this :

frame_right.grid_columnconfigure(0, weight=1)
frame_right.grid_columnconfigure(1, weight=10)
  • Related