Sorry the command should have read
$text->g_bind('<Return>',sub{$name=$text->get(qw/sel.first sel.last/); +print "The name is $name\n"});
In reply to Re^9: Getting selection from Tkx text (typos)
by dabella12
in thread Getting selection from Tkx text
by dabella12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |