Web Analytics Made Easy - Statcounter
Skip to content

Popup get text

Display Popup with text entry field. Returns the text entered or None if closed / cancelled

    title = None,
    default_text = "",
    password_char = "",
    size = (None, None),
    button_color = None,
    background_color = None,
    text_color = None,
    icon = "default_icon.ico",
    font = None,
    no_titlebar = False,
    grab_anywhere = False,
    keep_on_top = False,
    location = (None, None)

Parameter Descriptions

Name Type Default Description
background_color str None background color of the entire window
button_color (str, str) or str None Color of the button (text, background)
default_text str default value to put into input area
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 click and drag anywhere in the window to move the window
icon bytes or str default_icon.ico filename or base64 string to be used for the window's icon
keep_on_top bool False If True the window will remain above all current windows
location (int, int) (None, None) (x,y) Location on screen to display the upper left corner of window
message str message displayed to user
no_titlebar bool False If True no titlebar will be shown
password_char str character to be shown instead of actually typed characters
size (int, int) (None, None) (width, height) of the InputText Element
text_color str None color of the message text
title str None Window title
RETURN str or None Text entered or None if window was closed or cancel button clicked