From 71cf617f16410d7f0a6c74c83860d7b213daa44d Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Tue, 10 Oct 2023 13:55:42 -0500 Subject: [PATCH] Update main_window.py PySide6 --- cq_editor/main_window.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cq_editor/main_window.py b/cq_editor/main_window.py index eb32803..f74ab21 100644 --- a/cq_editor/main_window.py +++ b/cq_editor/main_window.py @@ -1,6 +1,6 @@ import sys -from PyQt5.QtWidgets import (QLabel, QMainWindow, QToolBar, QDockWidget, QAction) +from PySide6.QtWidgets import (QLabel, QMainWindow, QToolBar, QDockWidget, QAction) from logbook import Logger import cadquery as cq @@ -20,9 +20,9 @@ from .icons import icon from .preferences import PreferencesWidget #DARKMODE edits: https://stackoverflow.com/questions/48256772/dark-theme-for-qt-widgets -from PyQt5.QtCore import Qt -from PyQt5.QtWidgets import QApplication -from PyQt5.QtGui import QPalette, QColor +from PySide6.QtCore import Qt +from PySide6.QtWidgets import QApplication +from PySide6.QtGui import QPalette, QColor app = QApplication([]) # Force the style to be the same on all OSs: app.setStyle("Fusion")