

If an entry is exporting its selection (see the exportselection option), then it will observe the standard X11 protocols for handling the selection entry selections are available as type STRING. A portion of the entry may be selected as described below. When first created, an Entry's string is empty. DESCRIPTIONĪn Entry is a widget that displays a one-line text string and allows that string to be edited using widget methods described below, which are typically bound to keystrokes and mouse actions. If the value is less than or equal to zero, the widget picks a size just large enough to hold its current text. Specifies an integer value indicating the desired width of the entry window, in average-size characters of the widget's font. See VALIDATION below for more information. If it returns 1, then the new edition occurs. If it returns 0 (or the valid Python boolean equivalent) then it means you reject the new edition and it will not occur and the invalidcommand will be evaluated if it is set. This command must return a valid Python boolean value. Setting it to "" disables this feature (the default). Specifies a script to eval when you want to validate the input into the entry widget. When you want validation, you must explicitly state which mode you wish to use.

Specifies the mode in which validation should operate: "none", "focus", "focusin", "focusout", "key", or "all". If the entry is "disabled", the value may not be changed, no insertion cursor will be displayed, the contents will not be selectable, and the entry may be displayed in a different color, depending on the values of the disabledforeground and disabledbackground options. If the entry is "readonly", then the value may not be changed using widget commands and no insertion cursor will be displayed, even if the input focus is in the widget the contents of the widget may still be selected. Specifies one of three states for the entry: "normal", "disabled", or "readonly". 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. This is useful, for example, if the entry is to be used to enter a password. Instead, each character in the entry's value will be displayed as the first character in the value of this option, such as "*". If this option is specified, then the true contents of the entry are not displayed in the window. If this option is the empty string, the normal background color is used. Specifies the background color to use when the entry is readonly.

The best use of this option is to set it to bell. Specifies a script to eval when validatecommand returns 0. If this option is the empty string, the normal foreground color is used. Specifies the foreground color to use when the entry is disabled. Specifies the background color to use when the entry is disabled. Entry(parent ,**options ) STANDARD OPTIONS
