import win32api
import tkinter as tk


def updateXY():
    x, y = win32api.GetCursorPos()
    xlabel['text'] = "x: " + str(x)
    ylabel['text'] = "y: " + str(y)
    root.after(1, updateXY)

root = tk.Tk()

root.geometry("150x85")
root.resizable(0,0)
xlabel = tk.Label(text="x: 1111")
ylabel = tk.Label(text="y: 1111")
xlabel.config(font=("Arial", 24))
ylabel.config(font=("Arial", 24))
xlabel.pack()
ylabel.pack()

updateXY()
root.mainloop()
1a484c265cef85159ee51550663423ce88df7b9b
<mask token>


def updateXY():
    x, y = win32api.GetCursorPos()
    xlabel['text'] = 'x: ' + str(x)
    ylabel['text'] = 'y: ' + str(y)
    root.after(1, updateXY)


<mask token>

<mask token>


def updateXY():
    x, y = win32api.GetCursorPos()
    xlabel['text'] = 'x: ' + str(x)
    ylabel['text'] = 'y: ' + str(y)
    root.after(1, updateXY)


<mask token>
root.geometry('150x85')
root.resizable(0, 0)
<mask token>
xlabel.config(font=('Arial', 24))
ylabel.config(font=('Arial', 24))
xlabel.pack()
ylabel.pack()
updateXY()
root.mainloop()

<mask token>


def updateXY():
    x, y = win32api.GetCursorPos()
    xlabel['text'] = 'x: ' + str(x)
    ylabel['text'] = 'y: ' + str(y)
    root.after(1, updateXY)


root = tk.Tk()
root.geometry('150x85')
root.resizable(0, 0)
xlabel = tk.Label(text='x: 1111')
ylabel = tk.Label(text='y: 1111')
xlabel.config(font=('Arial', 24))
ylabel.config(font=('Arial', 24))
xlabel.pack()
ylabel.pack()
updateXY()
root.mainloop()

import win32api
import tkinter as tk


def updateXY():
    x, y = win32api.GetCursorPos()
    xlabel['text'] = 'x: ' + str(x)
    ylabel['text'] = 'y: ' + str(y)
    root.after(1, updateXY)


root = tk.Tk()
root.geometry('150x85')
root.resizable(0, 0)
xlabel = tk.Label(text='x: 1111')
ylabel = tk.Label(text='y: 1111')
xlabel.config(font=('Arial', 24))
ylabel.config(font=('Arial', 24))
xlabel.pack()
ylabel.pack()
updateXY()
root.mainloop()

import win32api
import tkinter as tk


def updateXY():
    x, y = win32api.GetCursorPos()
    xlabel['text'] = "x: " + str(x)
    ylabel['text'] = "y: " + str(y)
    root.after(1, updateXY)

root = tk.Tk()

root.geometry("150x85")
root.resizable(0,0)
xlabel = tk.Label(text="x: 1111")
ylabel = tk.Label(text="y: 1111")
xlabel.config(font=("Arial", 24))
ylabel.config(font=("Arial", 24))
xlabel.pack()
ylabel.pack()

updateXY()
root.mainloop()