Fix: make HistogramLUTWidget obey default background color

This commit is contained in:
Luke Campagnola 2013-03-30 22:26:32 -04:00
parent 5bb5c7487c
commit 70ec358995

View File

@ -13,7 +13,7 @@ __all__ = ['HistogramLUTWidget']
class HistogramLUTWidget(GraphicsView):
def __init__(self, parent=None, *args, **kargs):
background = kargs.get('background', 'k')
background = kargs.get('background', 'default')
GraphicsView.__init__(self, parent, useOpenGL=False, background=background)
self.item = HistogramLUTItem(*args, **kargs)
self.setCentralItem(self.item)