load background color from configOption
This commit is contained in:
parent
ce4c6d95ed
commit
f698ccc06e
@ -4,6 +4,7 @@ import OpenGL.GL.framebufferobjects as glfbo
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from .. import Vector
|
from .. import Vector
|
||||||
from .. import functions as fn
|
from .. import functions as fn
|
||||||
|
from .. import getConfigOption
|
||||||
import warnings
|
import warnings
|
||||||
from math import cos, sin, tan, radians
|
from math import cos, sin, tan, radians
|
||||||
##Vector = QtGui.QVector3D
|
##Vector = QtGui.QVector3D
|
||||||
@ -90,7 +91,7 @@ class GLViewWidget(QtWidgets.QOpenGLWidget):
|
|||||||
self.opts['azimuth'] = 45 ## camera's azimuthal angle in degrees
|
self.opts['azimuth'] = 45 ## camera's azimuthal angle in degrees
|
||||||
## (rotation around z-axis 0 points along x-axis)
|
## (rotation around z-axis 0 points along x-axis)
|
||||||
self.opts['viewport'] = None ## glViewport params; None == whole widget
|
self.opts['viewport'] = None ## glViewport params; None == whole widget
|
||||||
self.setBackgroundColor('k')
|
self.setBackgroundColor(getConfigOption('background'))
|
||||||
|
|
||||||
def addItem(self, item):
|
def addItem(self, item):
|
||||||
self.items.append(item)
|
self.items.append(item)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user