返回顶部

收藏

Fill shape color

更多
from Tkinter import *

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

canvas.create_oval(10, 10, 200, 200, width=2, fill='blue')

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. 2015-12-03 09:40:19Button font: underline italic by 山药
  5. 2016-04-23 09:24:00Draw lines by 蟋蟀MM
  6. 2017-04-01 16:33:01Draw Arc by 阿明娃儿
  7. 2013-06-05 13:21:25python 使用MySQLdb连接mysql by 玉开Sir
  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. 2016-11-05 21:19:18Line color by 山药

发表评论