diff --git a/pix2tex/gui.py b/pix2tex/gui.py index f9094ca..68905a5 100644 --- a/pix2tex/gui.py +++ b/pix2tex/gui.py @@ -2,11 +2,11 @@ import sys import os import tempfile -from PyQt5 import QtCore, QtGui -from PyQt5.QtCore import Qt, pyqtSlot, pyqtSignal, QThread -from PyQt5.QtWebEngineWidgets import QWebEngineView -from PyQt5.QtGui import QKeySequence -from PyQt5.QtWidgets import QMainWindow, QApplication, QMessageBox, QVBoxLayout, QWidget, QShortcut,\ +from PyQt6 import QtCore, QtGui +from PyQt6.QtCore import Qt, pyqtSlot, pyqtSignal, QThread +from PyQt6.QtWebEngineWidgets import QWebEngineView +from PyQt6.QtGui import QKeySequence +from PyQt6.QtWidgets import QMainWindow, QApplication, QMessageBox, QVBoxLayout, QWidget,\ QPushButton, QTextEdit, QFormLayout, QHBoxLayout, QDoubleSpinBox from pix2tex.resources import resources from pynput.mouse import Controller @@ -65,7 +65,7 @@ def initUI(self): self.snipButton = QPushButton('Snip [Alt+S]', self) self.snipButton.clicked.connect(self.onClick) - self.shortcut = QShortcut(QKeySequence("Alt+S"), self) + self.shortcut = QtGui.QShortcut(QtGui.QKeySequence('Alt+S'), self) self.shortcut.activated.connect(self.onClick) # Create retry button