返回顶部

收藏

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-04-23 09:45:22Line width by jack.chen
  2. 2016-02-25 16:20:21Line with pattern by wubai
  3. 2016-09-24 09:03:03Warning bmp on a Label by jack.chen
  4. 2016-11-05 21:19:18Line color by 山药
  5. 2015-12-13 11:28:39Set font from Root component by 风云轩
  6. 2016-01-21 16:07:51Draw circle by 张宋付
  7. 2017-03-05 13:53:41Draw Math Curve by jack.chen
  8. 2015-12-07 19:24:39Load bitmap into a Canvas by 山药
  9. 2016-01-29 16:07:13Label font by 阮小七
  10. 2017-03-05 14:15:26Set Button style: font by 风云轩
  11. 2017-07-15 16:15:27检查SSH by digua

发表评论