How to draw a right angle triangle using tkinter?

后端 未结 2 1400
情书的邮戳
情书的邮戳 2021-01-28 18:22

I\'m trying to draw a right angle triangle with tkinter. I can\'t figure out how to do it, I can do a rectangle and then another one but I cant get the second rectangle to be a

2条回答
  •  遇见更好的自我
    2021-01-28 18:52

    You should use create_polygon() to draw triangle:

    shape2={'bounds': [20, 50, 80, 35, 80, 50], 'kind': 'tri', 'fill': True}
    can.create_polygon(list(shape2.values())[0],fill='white',outline='white')
    

提交回复
热议问题