Warning: count(): Parameter must be an array or an object that implements Countable in /home/xs638785/agile-software.site/public_html/wp-content/plugins/rich-table-of-content/functions.php on line 490
- width:線の幅
- outline:線の色
- fill:塗りの色
#cording:utf-8
import tkinter as tk
root.tk TK()
root.geometry("600x400")
canvas=tk.Canvas(root,width=600,height=400,bg="white")
canvas.place(x=0,y=0)
canvas.create_oval(300-20,200-20,300+20,200+20)
root.mainloop()
キャンバスをクリックしたときに表示する
bindメソッド
def
canvas.bind("<Buttou-1>"click)