- porting to PyQt6
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user