返回顶部

收藏

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. 2015-12-07 19:24:39Load bitmap into a Canvas by 山药
  2. 2016-01-29 16:07:13Label font by 阮小七
  3. 2016-11-08 09:02:07Draw Rectangle by 阮小七
  4. 2016-10-29 09:05:11Draw rectangle with filled color by jack.chen
  5. 2015-11-26 18:29:34Draw shape border by Solon.Ring
  6. 2016-08-18 11:12:58Draw a Oval with fill by 大猪
  7. 2015-02-23 09:40:23ubuntu安装python3的python-pip by 甄码农
  8. 2015-12-18 09:09:05Arc with start degree and end degree by 司马
  9. 2016-01-24 21:02:43Draw oval using Python by 阮小七
  10. 2016-01-05 21:28:22Draw oval by 山药
  11. 2017-01-06 09:31:38Boolean operation in if by xwz

发表评论