I am using TraitsUI to make a GUI. I want to be able to edit more about how the GUI actually looks. E.g. I want to be able to change the font of certain Str objects, change the background color of some boxes, make some boxes much larger with larger font sizes (bold/italic etc.).
Is this easy to do? I have been playing around with the toy example below. But all attempts I have made have not worked. Do I need to edit the View or Item Objects to do this? Or do I need to create custom Editors?
A simple example highlighting how to do these things would be appreciated if anyone know of one.
Thanks,
Tim
class House(HasTraits):
address = Str
bedrooms = Int
pool = Bool
price = Int
traits_view =View(
Group(Item('address', style="readonly"), Item('bedrooms'), Item('pool'), Item('price'),show_border=True)
)
hs = House()
hs.configure_traits()