Browse Source

Add files via upload

master
Unbewohnte 5 years ago committed by GitHub
parent
commit
dd95963e32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 40
      CursorCoordinates .PY

40
CursorCoordinates .PY

@ -0,0 +1,40 @@
from tkinter import *
import pyautogui as pg
buttonyes = True
#00FA9A
def cursor():
coordinates = pg.position()
label2 = Label(root, text = coordinates,font=('Arial Bold',30))
label2.place(x = 220, y = 350, height = 50, width = 165)
label2.after(60, cursor)
buttonyes = False
BigX = False
BigY = False
if buttonyes == False:
button1.destroy()
labelx = Label(root, text = 'X', font=('Arial Bold',20))
labelx.place(x = 220, y = 290)
labely = Label(root, text = 'Y', font=('Arial Bold',20))
labely.place(x = 360 , y = 290)
root = Tk()
root.title('HOLY ROMAN EMPIRE, THAT`S WORKING NORMALLY')
root.geometry('600x600')
canvas = Canvas(root, width=1000, height=1000, bg= '#00FA9A')
canvas.pack()
#Main thing
label1 = Label(root, text = 'Cursor coordinates ', font=('Arial Bold',30))
label1.place(x = 130, y = 100)
button1 = Button(root, text = 'Launch ', command = cursor )
button1.place(x = 270, y = 200)
root.mainloop()
Loading…
Cancel
Save