Why are the Tkinter canvas lines jagged?

前端 未结 3 1014
我寻月下人不归
我寻月下人不归 2021-01-05 00:31

The lines drawn on a Tkinter.Canvas are not smooth. How can they be made smooth?

Here\'s what I tried:

 from Tkinter import *
 root = Tk         


        
3条回答
  •  忘掉有多难
    2021-01-05 00:58

    tkinter graphics are not anti-aliased which is why the diagonal line appears jagged. There may be a platform specific work-around like this one I found titled Drawing Anti-Aliased Graphics Under Tkinter/Windows to provide the functionality you desire.

提交回复
热议问题