Entry.setVisibility

Sets whether the contents of the entry are visible or not. When visibility is set to FALSE, characters are displayed as the invisible char, and will also appear that way when the text in the entry widget is copied elsewhere.

By default, GTK+ picks the best invisible character available in the current font, but it can be changed with Entry.setInvisibleChar.

Note that you probably want to set input-purpose to GTK_INPUT_PURPOSE_PASSWORD or GTK_INPUT_PURPOSE_PIN to inform input methods about the purpose of this entry, in addition to setting visibility to FALSE.

class Entry
void
setVisibility
(
bool visible
)

Parameters

visible bool

TRUE if the contents of the entry are displayed as plaintext