Browse Source

Add files via upload

master
Unbewohnte 4 years ago committed by GitHub
parent
commit
0c7cac39e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 38
      cursor_coordinates.py
  2. 33
      cursor_coordinates.spec

38
cursor_coordinates.py

@ -0,0 +1,38 @@
from tkinter import *
import pyautogui as pg
buttonyes = True
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('Coordinates')
root.geometry('600x600')
canvas = Canvas(root, width=1000, height=1000, bg= '#00FA9A')
canvas.pack()
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()
# Copyright (c) 2020 Unbewohnte

33
cursor_coordinates.spec

@ -0,0 +1,33 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['cursor_coordinates.py'],
pathex=['D:\\Загрузки(D)\\CursorCoordinates-master'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='cursor_coordinates',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False )
Loading…
Cancel
Save