Holds color and font preferences.
|
__init__(self,
font_size=11,
font_bold=True,
opengl=False,
line_width=1.0)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
color(self,
nm_def)
Returns (r,g,b,a) (in [0..1]) corresponding to COLORREF tuple nm_def,
from user prefs. |
source code
|
|
|
|
|
color_preset(self,
name,
default)
Initializes the named color with a new default, to override the one
in its COLORREF tuple, as from saved preferences. |
source code
|
|
|
setup_context(self,
context)
Sets the font in a cairo drawing context. |
source code
|
|
|
calc_font_spacing(self)
Returns (emsize, fheight) -- width of a capital M, and overall font
height (advisory). |
source code
|
|
|
set_font_size(self,
pts,
bold=None)
Changes the default font size and weight, and signals OnSetFontSize. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
font_size
size in points of the default font
|
|
font_bold
(bool) default font is bold?
|
|
opengl
True if OpenGL is allowed
|
|
line_width
multiplier, default=1.0
|
|
hide_hidden_signals
False to show controls for all signals
|
|
multi_line_data
True to add lines when lo-res data is expanded
|
|
auto_scale_data
True to auto-scale data signals
|
|
color_idealized
True to draw idealization with class colors
|
|
gauss_intensity
True to draw fit curve with intensity gradient (otherwise +/- 1 std)
|
|
OnAddColor
WeakEvent(name, (r,g,b,a)) when a color is looked up
for the first time
|
|
OnSetAutoScaleData
WeakEvent(bool)
|
|
OnSetColor
WeakEvent(name, (r,g,b,a)) when a color is changed
|
|
OnSetColorIdealized
WeakEvent(bool)
|
|
OnSetFontSize
WeakEvent(font_size) when set_font_size() is called
|
|
OnSetGaussIntensity
WeakEvent(bool)
|
|
OnSetHideHiddenSignals
WeakEvent(bool)
|
|
OnSetLineWidth
WeakEvent(line_width) when set_line_width() is
called
|
|
OnSetMultiLineData
WeakEvent(bool)
|
|
OnSetOpenGL
WeakEvent(opengl) when set_opengl() is called
|
|
color_by_name
dict: name -> TS_Color
|
|
colordef_by_name
dict: name -> (r,g,b,a); values from color_preset() which haven't
been requested by any components yet.
|
|
colors
dict: name -> TS_Color
|
|
emsize
width in pixels of a capital 'M'
|