From e8097b4065d257586ffa4a16f7ed98f4120656ca Mon Sep 17 00:00:00 2001
From: tassaron
Date: Mon, 2 May 2022 19:39:21 -0400
Subject: fixes #70 - store a ref to preview frame & update preview
synchronously removing the Python thread might not have been necessary. I
will test this next
---
src/gui/mainwindow.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'src/gui/mainwindow.py')
diff --git a/src/gui/mainwindow.py b/src/gui/mainwindow.py
index f6de763..2bfc4e3 100644
--- a/src/gui/mainwindow.py
+++ b/src/gui/mainwindow.py
@@ -4,7 +4,7 @@
This shows a preview of the video being created and allows for saving
projects and exporting the video at a later time.
'''
-from PyQt5 import QtCore, QtGui, QtWidgets, uic
+from PyQt5 import QtCore, QtWidgets, uic
import PyQt5.QtWidgets as QtWidgets
from PIL import Image
from queue import Queue
@@ -754,7 +754,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.autosave()
self.updateWindowTitle()
- @QtCore.pyqtSlot(QtGui.QImage)
+ @QtCore.pyqtSlot('QImage')
def showPreviewImage(self, image):
self.previewWindow.changePixmap(image)
--
cgit v1.2.3
>
index : dotfiles | |
| 🚨 these dotfiles are HEAVILY tailored for my needs and setup. Feel free to explore and find ideas, but use at your own risk. | |
| Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|