1 Star 0 Fork 0

tlq-github/TFT_assistant

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
坐标查看工具.py 370 Bytes
一键复制 编辑 原始数据 按行查看 历史
TLQ 提交于 1年前 . 第一次提交
from PIL import ImageGrab
import tkinter as tk
def get_coordinates():
x, y = root.winfo_pointerxy()
label.config(text=f"X: {x}, Y: {y}")
root.after(100, get_coordinates)
root = tk.Tk()
root.title("坐标查看工具")
root.geometry("300x50")
label = tk.Label(root, text="Move your mouse to see coordinates")
label.pack()
get_coordinates()
root.mainloop()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tlq-github/TFT_assistant.git
git@gitee.com:tlq-github/TFT_assistant.git
tlq-github
TFT_assistant
TFT_assistant
master

搜索帮助