Web Analytics Made Easy - Statcounter
Skip to content

Output

Output Element - a multi-lined text area to where stdout and stderr is rerouted.

Output(
    size = (None, None),
    background_color = None,
    text_color = None,
    pad = None,
    font = None,
    tooltip = None,
    key = None,
    visible = True,
    size_px = (None, None),
    disabled = False
)

Parameter Descriptions

Name Type Default Description
background_color str None color of background. Can be in #RRGGBB format or a color name "black"
disabled bool False disable or enable state of the element
font (str or (str, int[, str]) or None) None specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike
key str or int or tuple or object None Used with window.find_element and with return values to uniquely identify this element to uniquely identify this element
pad (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) None Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int)
size (int, int) or (None, None) (None, None) (w, h) w=characters-wide, h=rows-high
size_px (int, int) or (None, None) (None, None) w=pixels-wide, h=pixels-high
text_color str None element's text color. Can be in #RRGGBB format or a color name "black"
tooltip str None text, that will appear when mouse hovers over the element
visible bool True set visibility state of the element (Default = True)

Class Properties

This class has no public properties

Class Methods

 def update

update

Changes some of the settings for the Output Element. Must call Window.Read or Window.Finalize prior

Changes will not be visible in your window until you call window.read or window.refresh.

If you change visibility, your element may MOVE.

update(
    value = None,
    disabled = None,
    append = False,
    background_color = None,
    text_color = None,
    font = None,
    visible = None
)

Parameter Descriptions

Name Type Default Description
append bool False if True then new value will be added onto the end of the current value. if False then contents will be replaced.
background_color str None color of background. Can be in #RRGGBB format or a color name "black"
disabled bool None disable or enable state of the element
font (str or (str, int[, str]) or None) None specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike
text_color str None element's text color. Can be in #RRGGBB format or a color name "black"
value Any None new text to show
visible bool None set visibility state of the element