I am adding a frame label with tkinter so I can put some text labels in it. And I want to know how to make that frame adjust it self with the text. Text starts at the top and goes downwards ,but when the last text gets to the bottom it disappears like every text after that one. I want to know how can I make that frame "scroll" itself like move itself down with the text.
Similar thing to the first question, but this time I want to know how can I make the text that is in the frame stop going of the screen on the right side. How can I make it so when it gets to the edge of that frame to continue the text in the next line?
from tkinter import *
def main():
root = Tk()
def click():
lab1 = Label(newFrameLabel, text="Something")
lab1.pack()
newFrameLabel = LabelFrame(root, width=50, height=100)
newFrameLabel.pack_propagate(flag=False)
newFrameLabel.pack(anchor=NW)
newButton = Button(root, text="Submit", command=click)
newButton.pack(anchor=NW)
root.mainloop()
main()
So when I press the "submit" button a couple of times the text piles up, and when it gets to the bottom of the screen I think it creates the next text label bellow the last text, but outside of the frame where its not visible.