mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
refactor: editor.py migration to qtpy
This commit is contained in:
@ -1,9 +1,9 @@
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
import qdarktheme
|
import qdarktheme
|
||||||
from PyQt6.QtCore import QFile, QTextStream, pyqtSignal, QThread
|
from qtpy.QtCore import QFile, QTextStream, Signal, QThread
|
||||||
from PyQt6.QtGui import QColor, QFont, QAction, QShortcut, QKeySequence
|
from qtpy.QtGui import QColor, QFont, QAction, QShortcut, QKeySequence
|
||||||
from PyQt6.QtWidgets import (
|
from qtpy.QtWidgets import (
|
||||||
QApplication,
|
QApplication,
|
||||||
QMainWindow,
|
QMainWindow,
|
||||||
QFileDialog,
|
QFileDialog,
|
||||||
@ -12,11 +12,13 @@ from PyQt6.QtWidgets import (
|
|||||||
QVBoxLayout,
|
QVBoxLayout,
|
||||||
QWidget,
|
QWidget,
|
||||||
)
|
)
|
||||||
from PyQt6.Qsci import QsciScintilla, QsciLexerPython
|
|
||||||
|
# from PyQt6.Qsci import QsciScintilla, QsciLexerPython
|
||||||
|
from qtpy.Qsci import QsciScintilla, QsciLexerPython
|
||||||
|
|
||||||
|
|
||||||
class ScriptRunnerThread(QThread):
|
class ScriptRunnerThread(QThread):
|
||||||
outputSignal = pyqtSignal(str)
|
outputSignal = Signal(str)
|
||||||
|
|
||||||
def __init__(self, script):
|
def __init__(self, script):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
Reference in New Issue
Block a user