mirror of
https://github.com/jdegenstein/jmwright-CQ-Editor.git
synced 2025-12-19 22:24:19 +01:00
Update main_window.py PySide6
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from PyQt5.QtWidgets import (QLabel, QMainWindow, QToolBar, QDockWidget, QAction)
|
from PySide6.QtWidgets import (QLabel, QMainWindow, QToolBar, QDockWidget, QAction)
|
||||||
from logbook import Logger
|
from logbook import Logger
|
||||||
import cadquery as cq
|
import cadquery as cq
|
||||||
|
|
||||||
@@ -20,9 +20,9 @@ from .icons import icon
|
|||||||
from .preferences import PreferencesWidget
|
from .preferences import PreferencesWidget
|
||||||
|
|
||||||
#DARKMODE edits: https://stackoverflow.com/questions/48256772/dark-theme-for-qt-widgets
|
#DARKMODE edits: https://stackoverflow.com/questions/48256772/dark-theme-for-qt-widgets
|
||||||
from PyQt5.QtCore import Qt
|
from PySide6.QtCore import Qt
|
||||||
from PyQt5.QtWidgets import QApplication
|
from PySide6.QtWidgets import QApplication
|
||||||
from PyQt5.QtGui import QPalette, QColor
|
from PySide6.QtGui import QPalette, QColor
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
# Force the style to be the same on all OSs:
|
# Force the style to be the same on all OSs:
|
||||||
app.setStyle("Fusion")
|
app.setStyle("Fusion")
|
||||||
|
|||||||
Reference in New Issue
Block a user