I have a project about L-systems. I tried to add a turtle which prints L-systems; however, canvas does not expand, unlike a text field. My text field is expanding great with a scrollbar when I print more text. However, the turtle is stuck in the canvas. I am really stuck.
frame2 = tki.Frame(frame, bg='yellow', width=810, height=510)
frame2.pack()
frame2.place(x=500,y=5)
cv = Canvas(frame2, width=2000, height=2000)
cv.place(x=0, y=0)
screen = turtle.TurtleScreen(cv)
t = turtle.RawTurtle(screen)
hbar=Scrollbar(frame2,orient=HORIZONTAL)
hbar.pack(side=BOTTOM,fill=X)
hbar.config(command=cv.xview)
vbar=Scrollbar(frame2,orient=VERTICAL)
vbar.pack(side=RIGHT,fill=Y)
vbar.config(command=cv.yview)
cv.config(width=800,height=500)
cv.config(xscrollcommand=hbar.set, yscrollcommand=vbar.set)
cv.pack(side=LEFT,expand=True,fill=BOTH)