in reply to Re^2: Getting selection from Tkx text
in thread Getting selection from Tkx text
$text->get(qw/ sel.first sel.last/) works if i highlight the text after i find it, but Tkx::FindBar already highlights the text so i should only have to hit enter to put it in a variable. i have setup my text widget to bind to enter. ex: $text->g_bind('<Return>',sub{ name = $text->get(qw/sel.first sel.last/);print "$name\n"});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Getting selection from Tkx text
by Anonymous Monk on Mar 31, 2013 at 01:00 UTC | |
by dabella12 (Acolyte) on Apr 01, 2013 at 15:22 UTC | |
by Anonymous Monk on Apr 02, 2013 at 02:10 UTC | |
by dabella12 (Acolyte) on Apr 03, 2013 at 16:51 UTC | |
by Anonymous Monk on Apr 03, 2013 at 23:51 UTC | |
|