Skip to content

Commit

Permalink
Fix resources
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepdeJong committed Jan 28, 2023
1 parent 6a42909 commit c148138
Show file tree
Hide file tree
Showing 2 changed files with 9,207 additions and 14,299 deletions.
7 changes: 3 additions & 4 deletions pix2tex/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
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

from PIL import ImageGrab, Image
Expand All @@ -17,6 +15,7 @@
from pix2tex import cli
from pix2tex.utils import in_model_path

import pix2tex.resources.resources
class App(QMainWindow):
isProcessing = False

Expand Down Expand Up @@ -233,8 +232,8 @@ def __init__(self, parent):

def snip(self):
self.isSnipping = True
self.setWindowFlags(Qt.WindowStaysOnTopHint)
QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.CrossCursor))
self.setWindowFlags(QtCore.Qt.WindowType.WindowStaysOnTopHint)
QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.CursorShape.CrossCursor))

self.show()

Expand Down
Loading

0 comments on commit c148138

Please sign in to comment.