NAME
PasswdDlg - a login/password dialog box
SYNOPSIS
PasswdDlg pathName ?option value...?
DESCRIPTION
OPTIONS from Dialog
-anchor
-background or -bg
-homogeneous
-modal
-padx
-pady
-parent
-spacing
-title
OPTIONS from LabelEntry
-background or -bg
-borderwidth or -bd
-disabledforeground
-entrybg
-entryfg
-exportselection
-font
-foreground or -fg
-helptype
-highlightbackground
-highlightcolor
-highlightthickness
-insertbackground
-insertborderwidth
-insertofftime
-insertontime
-insertwidth
-labelanchor
-labelfont
-labelheight
-labeljustify
-labelwidth
-loginhelptext (see -helptext)
-loginhelpvar (see -helpvar)
-loginlabel (see -label)
-logintext (see -text)
-logintextvariable (see -textvariable)
-loginunderline (see -underline)
-passwdeditable (see -editable)
-passwdhelptext (see -helptext)
-passwdhelpvar (see -helpvar)
-passwdlabel (see -label)
-passwdstate (see -state)
-passwdtext (see -text)
-passwdtextvariable (see -textvariable)
-passwdunderline (see -underline)
-relief
-selectbackground
-selectborderwidth
-selectforeground
-wraplength
WIDGET-SPECIFIC OPTIONS
-command
-type
WIDGET COMMAND
pathName cget option
pathName configure ?option? ?value option value ...?

NAME

PasswdDlg - a login/password dialog box

SYNOPSIS

PasswdDlg pathName ?option value...?

DESCRIPTION

The command PasswdDlg creates a login/password dialog, displays it, and returns the value of login and password in a list, or an empty list if the dialog is closed or user presses cancel. Upon return the dialog has been destroyed.

The default labels and title are in English. To use another language, examine the module Slab::lang::code where code identifies the Tcl msgcat locale, and set appropriate values for the keys loginName and passwordName (for the Entry labels) in the namespace ::Slab, and the key title (for the toplevel title) in the namespace ::Slab::PasswdDlg. For example, the module Slab::lang::de for German includes the code:

namespace eval ::Slab {
    ::msgcat::mcset de loginName           &Login
    ::msgcat::mcset de passwordName        &Passwort

    namespace eval PasswdDlg {
        ::msgcat::mcset de title          {Login und Passwort eingeben}
    }
}

WIDGET-SPECIFIC OPTIONS

-command
Specifies a command to call when user press ok button.
-type
Specifies a set of buttons to be displayed. The following values are possible:

ok
Displays one button whose symbolic name is ok.

okcancel
Displays two buttons whose symbolic names are ok and cancel.

WIDGET COMMAND

pathName cget option
Returns the current value of the configuration option given by option. Argument option may have any of the values accepted by the creation command PasswdDlg.
pathName configure ?option? ?value option value ...?
Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName. If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Argument option may have any of the values accepted by the creation command PasswdDlg. Read-only options cannot be modified.
By Stephane Lavirotte (Stephane.Lavirotte@sophia.inria.fr)
Copyright © 1998-1999 UNIFIX.
Copyright © 2001-2002 ActiveState Corp.
Copyright © 2017-2025 CitizenEarth Internet Ltd.