ETSettings.UIElementSizes
ETSettings.UIElementSizes(
highlight=0.02,
line_width=0.003,
marker=0.02,
border=0.005,
plot_line=0.002,
text=0.025,
target_circle=0.012,
target_circle_width=0.003,
sample_marker=0.005,
instruction_text=0.019,
message_text=0.016,
title_text=0.018,
legend_text=0.015,
)Size settings for user interface elements.
Defines sizes for various UI components in the calibration interface. All sizes are specified in height units (as fraction of screen height) and are automatically converted to appropriate units based on the PsychoPy window configuration.
Attributes
| Name | Type | Description | |
|---|---|---|---|
| highlight | <<<<<<< HEADfloat | =======float | >>>>>>> origin/mainRadius of circles highlighting selected calibration points for retry. Default is 0.02 (2% of screen height). |
| line_width | float | Thickness of lines drawn in calibration visualizations. Default is 0.003 (0.3% of screen height). | |
| marker | float | Size of markers indicating data collection points. Default is 0.02 (2% of screen height). | |
| border | float | Thickness of the red calibration mode border around the screen. Default is 0.005 (0.5% of screen height). | |
| plot_line | float | Width of lines in calibration result plots connecting targets to samples. Default is 0.002 (0.2% of screen height). | |
| text | <<<<<<< HEADfloat | =======float | >>>>>>> origin/mainBase text height (deprecated - use specific text sizes below). Default is 0.025 (2.5% of screen height). |
| target_circle | float | Radius of target circles drawn in calibration result visualizations. Default is 0.012 (1.2% of screen height). | |
| target_circle_width | <<<<<<< HEADfloat | =======float | >>>>>>> origin/mainLine width for target circle outlines in result visualizations. Default is 0.003 (0.3% of screen height). |
| sample_marker | <<<<<<< HEADfloat | =======float | >>>>>>> origin/mainRadius of sample markers in circle visualization style. Default is 0.005 (0.5% of screen height). |
| instruction_text | <<<<<<< HEADfloat | =======float | >>>>>>> origin/mainText height for instruction displays during calibration. Default is 0.019 (1.9% of screen height). |
| message_text | <<<<<<< HEADfloat | =======float | >>>>>>> origin/mainText height for general message displays. Default is 0.016 (1.6% of screen height). |
| title_text | <<<<<<< HEADfloat | =======float | >>>>>>> origin/mainText height for title text in message boxes. Default is 0.018 (1.8% of screen height). |
| legend_text | <<<<<<< HEADfloat | =======float | >>>>>>> origin/mainText height for legend labels showing eye color coding. Default is 0.015 (1.5% of screen height). |
Notes
Height units provide consistent visual appearance across different screen sizes and aspect ratios. The conversion to pixels or other units is handled automatically by the coordinate conversion functions.
Examples
>>> ui_sizes = UIElementSizes()
>>> ui_sizes.highlight = 0.06 # Larger highlight circles
>>> ui_sizes.instruction_text = 0.025 # Larger instructions