返回顶部

收藏

Line color

更多
from Tkinter import *

canvas = Canvas(width=300, height=300, bg='white')   
canvas.pack(expand=YES, fill=BOTH)                  

canvas.create_line(0, 300, 150, 150, width=10, fill='green')

mainloop()

标签:Python,2D

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-11-14 10:27:46Radiobuttons demonstration set Font in Text by 张宋付
  2. 2016-04-23 09:05:45Checkbutton to set font to bold by 风云轩
  3. 2016-12-31 09:02:56Checkbuttons demonstration: set font by 蟋蟀MM
  4. 2013-06-05 13:21:25python 使用MySQLdb连接mysql by 玉开Sir
  5. 2015-12-03 09:40:19Button font: underline italic by 山药
  6. 2016-04-23 09:24:00Draw lines by 蟋蟀MM
  7. 2017-04-01 16:33:01Draw Arc by 阿明娃儿
  8. 2016-04-23 09:45:22Line width by jack.chen
  9. 2016-02-25 16:20:21Line with pattern by wubai
  10. 2016-09-24 09:03:03Warning bmp on a Label by jack.chen
  11. 2019-06-17 21:18:10PHP+jQuery.photoClip.js图片裁剪上传实例 by 素材火官网

发表评论