Python Canvas 删除海龟元素后无法正常工作

Python Canvas not working when I remove turtle element

这个程序运行良好,但是当我删除代码的注释部分时,canvas 上的行显示不正确

from tkinter import *
import numpy as np
import turtle

widthx = 400
heighty = 300
ws = Tk()
ws.title('Light Sim')
ws.geometry('400x300')
ws.config(bg='white')
x = 100
y = -100

c = Canvas(bg="white", height=heighty, width=widthx,)
c.grid(row=3, column=0, stick='sw')
#screen = turtle.TurtleScreen(c)
c.create_line(y, 0, x,0, fill='blue', width=2)
c.create_line(0,y,0,x,fill='grey', width=2)

ws.mainloop()

Canvas和TurtleScreen的坐标原点不同——左上角和window的中心。因此,线条消失了 - 超出了屏幕。