教育學習網python繪圖canvas

canvas帆布,畫布apple公司發展

frame框架, width, height, src=source
import tkinter as tk
root = tk.Tk()
root.title('劉任昌教育學習網')
root.geometry('300x300')
canvas = tk.Canvas(root, width=300, height=300)
canvas.create_oval(160, 120, 200, 160, width=8, fill='#f00', outline='#00f')
canvas.create_rectangle(10, 10, 50, 100)
canvas.create_rectangle(60, 10, 110, 100, width=8)
canvas.create_rectangle(120, 10, 170, 100, width=8, fill='#f00')
canvas.create_rectangle(180, 10, 230, 100, width=8, fill='#f00', outline='#00f')
canvas.create_rectangle(240, 10, 290, 100, width=3, fill='#fff', outline='#0a0', dash=(5,5))
canvas.create_text(40, 110, text='劉任昌', anchor='nw', fill='#0a0', font=('Arial', 30, 'bold','italic','underline'))
canvas.pack()
root.mainloop()

留言

  1. https://wilson11122.blogspot.com/2024/06/blog-post.html

    回覆刪除
  2. https://tustning.blogspot.com/2024/06/canvas.html

    回覆刪除
  3. https://yun0205.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  4. https://hui026.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  5. https://whitexd.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  6. https://keiime.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  7. https://ctz642895.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  8. https://kk0725.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  9. https://xi715.blogspot.com/2024/06/blog-post.html

    回覆刪除
  10. https://kitty930923.blogspot.com/2024/06/canvas.html

    回覆刪除
  11. https://ziyun040818.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  12. https://rrrrr-eeeee.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  13. https://rainhtmlcssjavascriptjavapython.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  14. https://htmlcssjavascriptjavapython.blogspot.com/2024/06/youtube-video-player.html

    回覆刪除
  15. https://oscarliu1688.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  16. https://yuziting.blogspot.com/2024/06/canvas.html

    回覆刪除
  17. https://aks8704100.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  18. https://ryanareryan.blogspot.com/2024/06/canvas.html

    回覆刪除
  19. https://yuechen613.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除
  20. https://addison030.blogspot.com/2024/06/pythoncanvas.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

柯聞折Javascript物件導向方法是物件的函數

甲劉任昌python串列List(陣列Array),元組Tuple,集合Set,字典Dict

劉任昌PYTHON陣列ARRAY串列LIST字典DIC集合SET元組TUPLE