I am trying to limit the height of a Customtkinter label but no matter what I set the height value to it doesn’t seem to do anything. I am using the Spotify API to fetch the name of the track which is currently playing, however, if the song name is long, it breaks the interface. I am also using wraplength
to wrap the text.
self.nowplayingsong = customtkinter.CTkLabel(self, text="Song name", fg_color="transparent", font=("Arial", 100), anchor="w", justify='left', wraplength=700)
self.nowplayingsong.grid(row=2, column=0, padx=100, pady=0, columnspan=3, sticky="W")
self.get_current_track()
Short song name:
Long song name:
I have tried setting the label height
to different values as mentioned in the Customtkinter documentation but it doesn’t seem to do anything.