- porting to PyQt6

This commit is contained in:
Marius Stanciu
2021-08-04 18:34:24 +03:00
parent c3d5fccb80
commit 53272da959
136 changed files with 1732 additions and 1715 deletions

View File

@@ -6,8 +6,8 @@
# MIT Licence #
# ##########################################################
from PyQt5.QtGui import QPalette
from PyQt5.QtCore import QSettings
from PyQt6.QtGui import QPalette
from PyQt6.QtCore import QSettings
import numpy as np
@@ -44,7 +44,7 @@ class VisPyCanvas(scene.SceneCanvas):
if theme == 'white':
theme_color = Color('#FFFFFF')
tick_color = Color('#000000')
back_color = str(QPalette().color(QPalette.Window).name())
back_color = str(QPalette().color(QPalette.ColorRole.Window).name())
else:
theme_color = Color('#000000')
tick_color = Color('gray')