From 0c7cac39e2ffac7ac657530aa27619b28ef17d0b Mon Sep 17 00:00:00 2001 From: Unbewohnte <65883674+Unbewohnte@users.noreply.github.com> Date: Mon, 8 Jun 2020 18:34:38 +0300 Subject: [PATCH] Add files via upload --- cursor_coordinates.py | 38 ++++++++++++++++++++++++++++++++++++++ cursor_coordinates.spec | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 cursor_coordinates.py create mode 100644 cursor_coordinates.spec diff --git a/cursor_coordinates.py b/cursor_coordinates.py new file mode 100644 index 0000000..24a4536 --- /dev/null +++ b/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 + diff --git a/cursor_coordinates.spec b/cursor_coordinates.spec new file mode 100644 index 0000000..594ad3f --- /dev/null +++ b/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 )