哥已不是原來的哥了
總網頁瀏覽量
2023年9月16日 星期六
2023年9月12日 星期二
2023年9月4日 星期一
Python點擊滑鼠座標(2023.9.4一)
#如何讓滑鼠點到的地方顯示座標,隨點隨顯示?
import tkinter as tk
root = tk.Tk()
root.title('my window')
def mouse(event):#印出滑鼠座標
t.insert('insert',(event.x,event.y))
t.insert('insert',"\n")
root.bind("<Button-1>",mouse)
t = tk.Text(root,font=('Arial', 12),height=30,width=30)
t.pack()
root.mainloop()
2023年8月30日 星期三
2023年8月4日 星期五
2023年7月31日 星期一
訂閱:
文章 (Atom)


