| 1 |
Tk::HistEntry Module |
| 2 |
|
| 3 |
Tk::HistEntry implements an entry widget with history. You may use the up |
| 4 |
and down keys to select older entries (or use the associated listbox). |
| 5 |
|
| 6 |
Usage: $top->HistEntry(-textvariable => \$foo, |
| 7 |
-command => sub { |
| 8 |
# automatically adds $foo to history |
| 9 |
print STDERR "Do something with $foo\n"; |
| 10 |
})->pack; |
| 11 |
|
| 12 |
The widget comes in two flavors: the "HistEntry" widget is an |
| 13 |
inherited BrowseEntry widget where you see history in the associated |
| 14 |
listbox, too. The "SimpleHistEntry" widget is a plain Entry widget. |
| 15 |
|
| 16 |
To install, type |
| 17 |
|
| 18 |
$ perl Makefile.PL |
| 19 |
$ make |
| 20 |
$ make install |
| 21 |
|
| 22 |
Testing is done with |
| 23 |
|
| 24 |
$ make test |
| 25 |
|
| 26 |
There's also a demo which can be started with |
| 27 |
|
| 28 |
$ make demo |
| 29 |
|
| 30 |
Send bug reports, comments and suggestions to Slaven Rezic |
| 31 |
<[email protected]>. |