Web Analytics Made Easy - Statcounter
Skip to content

Debug Window Output

easy_print

Works like a "print" statement but with windowing options. Routes output to the "Debug Window"

easy_print(
    args = *<1 or N objects>,
    size = (None, None),
    end = None,
    sep = None,
    location = (None, None),
    font = None,
    no_titlebar = False,
    no_button = False,
    grab_anywhere = False,
    keep_on_top = False,
    do_not_reroute_stdout = True
)

Parameter Descriptions

Name Type Default Description
*args Any stuff to output
do_not_reroute_stdout bool True do not reroute stdout and stderr. If False, both stdout and stderr will reroute to here
end str None end character
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
grab_anywhere bool False If True: can grab anywhere to move the window (Default = False)
keep_on_top bool False If True the window will remain above all current windows
location (int, int) (None, None) Location of upper left corner of the window
no_button bool False don't show button
no_titlebar bool False If True no titlebar will be shown
sep str None separator character
size (int, int) (None, None) (w,h) w=characters-wide, h=rows-high

easy_print_close

Close a previously opened EasyPrint window

easy_print_close()

eprint

This method is an alias for easy_print

Color Printing to Multiline Element of a Window