When opening a traitsui window the background of the window is dark instead of light (see attached screenshot). I just tried a minimal example:
from traits.api import HasTraits, Str, Float, Range
class Reservoir(HasTraits):
name = Str
max_storage = Float(1e6, desc='Maximal storage [hm3]')
max_release = Float(10, desc='Maximal release [m3/s]')
head = Float(10, desc='Hydraulic head [m]')
efficiency = Range(0, 1.)
def energy_production(self, release):
''' Returns the energy production [Wh] for the given release [m3/s]
'''
power = 1000 * 9.81 * self.head * release * self.efficiency
return power * 3600
res = Reservoir()
res.configure_traits()
I'm running Ubuntu 16.04 and pylab
with the qt4
backend. Is there some way to change the background colour to somehting lighter?