NAME
Entry - an entry widget with added dynamic help, drag and drop, and easy internationalization (i18n)
SYNOPSIS
Entry pathName ?option value...?
DESCRIPTION
STANDARD OPTIONS
Not themed
-background or -bg
-borderwidth or -bd
-disabledbackground
-disabledforeground
-exportselection
-font
-foreground or -fg
-highlightbackground
-highlightcolor
-highlightthickness
-insertbackground
-insertborderwidth
-insertofftime
-insertontime
-insertwidth
-justify
-relief
-selectbackground
-selectborderwidth
-selectforeground
-takefocus
-text
-textvariable
-xscrollcommand
Themed
-exportselection
-font
-insertofftime
-insertontime
-insertwidth
-justify
-takefocus
-text
-textvariable
-xscrollcommand
WIDGET-SPECIFIC OPTIONS
-command
-dragenabled
-dragendcmd
-dragevent
-draginitcmd
-dragtype
-dropcmd
-dropenabled
-dropovercmd
-droptypes
-editable
-helptext
-helptype
-helpvar
-show
-state
-width
WIDGET COMMAND
pathName cget option
pathName configure ?option? ?value option value ...?
pathName invoke
WIDGET COMMAND from the Tk entry widget
bbox, delete, get, icursor, index, insert, scan, selection, validate, and xview.

NAME

Entry - an entry widget with added dynamic help, drag and drop, and easy internationalization (i18n)

SYNOPSIS

Entry pathName ?option value...?

DESCRIPTION

The Entry widget extends the default Tk entry. Entry has the widget commands of the Tk entry widget. Options have been added to provide visual effect depending on the state of the Entry, DynamicHelp options, and Drag and Drop. For Drag and Drop, Entry behaves much like a Label, with a -text option to set its contents.

The Entry widget is used by Slab SpinBox, LabelEntry, and ComboBox; and through these widgets by SelectFont and PasswdDlg dialogs.

WIDGET-SPECIFIC OPTIONS

-command
Specifies a command to execute when the user presses <Return> in the Entry.
-dragenabled
A boolean specifying if drag is enabled.
-dragendcmd
Specifies a command to be called when drag ended. -dragendcmd must be a command conforming to the description of the option -dragendcmd of DragSite::register.
If -dragendcmd is empty, the internal dragend command updates the Entry following the operation (move or copy) and the dragged data (whole or selected part of the Entry).
-dragevent
Specifies the number of the mouse button associated to the drag. Must be 1, 2 or 3.
-draginitcmd
Specifies a command to be called when -dragevent occurs on widget. -draginitcmd must be a command conforming to the description of the option -draginitcmd of DragSite::register.
if -draginitcmd is empty, the command refuse the drag if Entry is empty or if portion of text is selected and event doesn't occur above the selection. In all other cases, the command returns:
-dragtype
Specifies an alternate type of dragged object.
-dropcmd
Entry has a command wrapper for drop events. This command stops auto scrolling and extract current position.
If -dropcmd is not empty, it is called with the following arguments: and must return a value conforming to -dropcmd option described in DropSite::register. If -dropcmd is empty, the wrapper updates the Entry following the type of data:
COLOR or FGCOLOR reconfigure the -foreground of the Entry
BGCOLOR reconfigure the -background of the Entry
TEXT, or any other tag reconfigure the Entry to display the associated string.
and returns 1.
-dropenabled
A boolean specifying if drop is enabled.
-dropovercmd
Entry has a command wrapper for drag-over events. This command enables auto scrolling and position extraction during the drag-over.
If -dropovercmd is empty, the wrapper accepts the drop if -editable option is true and -state option is normal.
If -dropovercmd is not empty, it is called with the following arguments: and must return a value conforming to the -dropovercmd option described in DropSite::register.
-droptypes
Specifies a list of accepted dropped object/operation. See option -droptypes of DropSite::register. for more infromation. Default accepts FGCOLOR, COLOR, BGCOLOR and TEXT, all with copy and move operations.
-editable
Boolean value. If and only if true, the Entry is editable by the user. Equivalent in its effect to the -state option of the Tk entry widget.
-helptext
Text for dynamic help. If empty, no help is available for this widget. See also DynamicHelp.
-helptype
Type of dynamic help. Use balloon or variable. See also DynamicHelp.
-helpvar
Variable to use when -helptype option is variable. See also DynamicHelp.
-show
If this option is specified, then the true contents of the Entry are not displayed in the window. Instead, each character in the Entry's value will be displayed as the first character in the value of this option, such as ``*''. This is useful, for example, if the Entry is to be used to enter a password. If characters in the Entry are selected and copied elsewhere, the information copied will be what is displayed, not the true contents of the Entry.
-state
Specifies one of two states for the Entry: normal or disabled. In the normal state the text of the Entry is displayed using the -foreground option. In the disabled state the text of the Entry is displayed using the -disabledforeground option. If the Entry is disabled then the value may not be changed by user input and no insertion cursor will be displayed, even if the input focus is in the widget. The disabled state is the same as -editable false with an additional visual effect.
-width
Specifies an integer value indicating the desired width of the Entry window, in average-size characters of the widget's font. If the value is less than or equal to zero, the widget picks a size just large enough to hold its current text.

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 Entry.
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 Entry. Read-only options cannot be modified.
pathName invoke
Calls the command specified by the option -command.

Further widget commands are derived from the Tk entry widget component of Entry: bbox, delete, get, icursor, index, insert, scan, selection, validate, and xview.
Copyright © 1998-1999 UNIFIX.
Copyright © 2001-2002 ActiveState Corp.
Copyright © 2017-2025 CitizenEarth Internet Ltd.