traitsui.theme module¶
Defines ‘theme’ related classes.
- class traitsui.theme.Theme(image=None, **traits)[source]¶
Bases:
HasPrivateTraits
- alignment = Alignment(cols=4)¶
The alignment to use for positioning the label:
- border = HasBorder¶
The border inset:
- content = HasMargin¶
The margin to use around the content:
- content_color = Property()¶
The color to use for content text (Wx only)
- image = Image¶
The background image to use for the theme:
- image_slice = Property(observe="image")¶
The image slice used to draw the theme (Wx only)
- label = HasMargin¶
The margin to use around the label:
- label_color = Property()¶
The color to use for label text (Wx only)
- traitsui.theme.default_theme = <traitsui.theme.Theme object>¶
The default theme: