NAME
Tk::IPEntry - A megawidget for input of IP-Adresses IPv4 and IPv6
SYNOPSIS
use Tk;
use Tk::IPEntry;
my $mw = MainWindow->new();
my $ipadress;
my $entry = $mw->IPEntry(
-variable => \$ipadress,
)->pack(-side => 'left');
$ipadress = '129.2.32.1';
MainLoop;
-type (ipv4|ipv6)
The format of Ip-Number.
METHODS
Here come the methods that you can use with this Widget.
$IPEntry->variable(\$ipnumber);
Specifies the name of a variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as anchor or justify.
$IPEntry->set($ipnumber);
Set the IP number to display.
$IPEntry->get();
Here you can get IP number from display.
$IPEntry->error();
This prints the last error.
EXAMPLES
Please see for examples in 'demos' directory in this distribution.
AUTHOR
xpix@netzwert.ag
SEE ALSO
Tk; Tk::NumEntry; Tie::Watch;
__END__