So, I am creating an application which displays song lyrics for entered songs, however, longer songs do not fit, so I want to shrink the size of the text if it is a longer song. I am unsure about how to go about this, so any help would be greatly appreciated.
I have tried using a conditional, however, it did not seem to work.
file = open(artist + song + ".txt", "r")
lyrics = file.read()
lines = file.readlines()
lyricsLabel = tk.Label(root, text = lyrics)
lyricsLabel.config(font = ("TkDefaultFont", 5))
lyricsLabel.grid(column = 0, row = 0)
if playSong == True:
os.startfile(artist + song + ".mp3")
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)