Skip to content

Commit

Permalink
Update to PyQt6
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepdeJong committed Jan 28, 2023
1 parent 44d70eb commit 49f7450
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pix2tex/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 49f7450

Please sign in to comment.