I am using wraplength
to limit the number of characters on each line for a label. Is there a way I can also limit the number of rows the label can have? I would like it to have a maximum of 2 rows of text.
I have tried setting the height however this doesn’t seem to do anything.
Here is the relevant code:
<code>self.nowplayingsong = customtkinter.CTkLabel(self, text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque velit tellus", 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")
</code>
<code>self.nowplayingsong = customtkinter.CTkLabel(self, text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque velit tellus", 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")
</code>
self.nowplayingsong = customtkinter.CTkLabel(self, text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque velit tellus", 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")
1