返回顶部

收藏

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-01-24 21:02:43Draw oval using Python by 阮小七
  2. 2016-01-05 21:28:22Draw oval by 山药
  3. 2016-01-17 16:15:39Draw polygon by 风云轩
  4. 2016-03-03 15:22:47Draw a line by 阿明娃儿
  5. 2016-03-20 20:06:28Draw gif image by 张宋付
  6. 2016-10-15 12:07:09Rectangle Border width by 蟋蟀MM
  7. 2013-06-04 13:43:27web.py中自定义jinja2模块 by 赵小全
  8. 2016-11-14 10:27:46Radiobuttons demonstration set Font in Text by 张宋付
  9. 2016-04-23 09:05:45Checkbutton to set font to bold by 风云轩
  10. 2016-12-31 09:02:56Checkbuttons demonstration: set font by 蟋蟀MM
  11. 2016-04-23 09:24:00Draw lines by 蟋蟀MM

发表评论