---
name: "entrybox"
section: "3tcl"
platform: "linux"
package: "tk-fsdialog"
version: "2.0~fs20200322.97fa62c-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/entrybox"
---

# entrybox(3tcl)

editable text field widget with clear controls

```

```

## NAME

entrybox - editable text field widget with clear controls

## SYNOPSIS

package require **Tk  8.6.6**

package require **matchbox  1.0**

```

```

## DESCRIPTION

The **ttk::entrybox** widget is an extension of the regular ttk::entry widget. It can be used wherever a ttk::entry is currently used, without any other changes to the code.

The difference between the **ttk::entrybox** widget and the ttk::entry widget is in the interaction with the user. An empty **ttk::entrybox** looks just like a ttk::entry. However, when there is any text in the **ttk::entrybox**, an icon appears on the right-hand side of the widget. The user can click this icon to erase the text.

## WIDGET COMMAND

A **ttk::entrybox** widget supports the same subcommands as a ttk::entry. As a convenience, one additional subcommand is available:

- *pathName* **set** *value*

  Directly set the value of the **ttk::entrybox** to *value*, replacing any existing text.

## DEFAULT BINDINGS

The **ttk::entrybox** has one additional key binding, Control-u, that also erases all text in the **ttk::entrybox**.

## COPYRIGHT

```
Copyright (c) 2017 Schelte Bron
```
