返回顶部

收藏

Draw Rectangle

更多
from Tkinter import *

root = Tk()

root.title('Canvas')

canvas = Canvas(root, width =400, height=400)
canvas.create_rectangle(205,10,300,105, outline='white', fill='gray50')

canvas.pack()

root.mainloop()

标签:Python,2D

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-01-05 21:28:22Draw oval by 山药
  2. 2016-01-17 16:15:39Draw polygon by 风云轩
  3. 2016-03-03 15:22:47Draw a line by 阿明娃儿
  4. 2016-03-20 20:06:28Draw gif image by 张宋付
  5. 2016-10-15 12:07:09Rectangle Border width by 蟋蟀MM
  6. 2013-06-04 13:43:27web.py中自定义jinja2模块 by 赵小全
  7. 2016-11-14 10:27:46Radiobuttons demonstration set Font in Text by 张宋付
  8. 2016-04-23 09:05:45Checkbutton to set font to bold by 风云轩
  9. 2016-12-31 09:02:56Checkbuttons demonstration: set font by 蟋蟀MM
  10. 2015-12-03 09:40:19Button font: underline italic by 山药
  11. 2016-04-23 09:24:00Draw lines by 蟋蟀MM

发表评论