diff --git a/elevenclock/__init__.py b/elevenclock/__init__.py index 0007d22d..a816f3aa 100644 --- a/elevenclock/__init__.py +++ b/elevenclock/__init__.py @@ -35,9 +35,7 @@ from PySide6.QtGui import * from PySide6.QtCore import * from PySide6.QtWidgets import * - import pyautogui import keyboard - pyautogui.FAILSAFE = False # Prevent pyautogui from blocking the bottom-right corner click. from external.FramelessWindow import QFramelessDialog from external.timezones import win_tz diff --git a/elevenclock/settings.py b/elevenclock/settings.py index 91f9c46e..0db8ced4 100644 --- a/elevenclock/settings.py +++ b/elevenclock/settings.py @@ -749,7 +749,6 @@ def thirdPartyLicenses():
  • Frameless Window: The Unlicense
  • Keyboard: MIT License
  • Psutil: BSD 3-Clause
  • -
  • PyAutoGui: BSD-3 Clause New
  • PyInstaller: Custom GPL
  • PySide6 (Qt6): GPL-v3
  • PyWin32: PSF-2.0
  • diff --git a/elevenclock/tools.py b/elevenclock/tools.py index c7beb8f6..3d78f637 100644 --- a/elevenclock/tools.py +++ b/elevenclock/tools.py @@ -17,7 +17,6 @@ import win32gui from external.blurwindow import GlobalBlur, ExtendFrameIntoClientArea -import pyautogui import globals from lang.languages import * @@ -284,7 +283,7 @@ def kill(self): def getMousePos() -> QPoint: try: - p = QPoint(pyautogui.position()[0], pyautogui.position()[1]) + p = QCursor.pos() if p.x() == None: p.setX(0) if p.y() == None: diff --git a/requirements.txt b/requirements.txt index 66e95faa..238db3d7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ PyInstaller==5.9.0 PySide6 keyboard psutil -pyautogui pytz win32mica winshell