Brings up a tcltk dialog centered on the screen, designed for entering passwords while displaying only ****.

PasswordDlg(option_txt = NULL)

Arguments

option_txt

an optional text, if it is defined, there will be a checkbox added to the dialog with the label being set with option_txt.

Value

the entered password

the status of the optional checkbox will be returned as attribute: attr(pw, "option")

Author

Markus Naepflin <markus@naepfl.in>

Examples

if (FALSE) {
pw <- PasswordDlg()
pw}