Getting cursor position in Python

后端 未结 11 1181
旧巷少年郎
旧巷少年郎 2020-12-02 22:29

Is it possible to get the overall cursor position in Windows using the standard Python libraries?

11条回答
  •  囚心锁ツ
    2020-12-02 23:07

    I found a way to do it that doesn't depend on non-standard libraries!

    Found this in Tkinter

    self.winfo_pointerxy()
    

提交回复
热议问题