Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: Getting selection from Tkx text

by dabella12 (Novice)
on Mar 30, 2013 at 17:52 UTC ( #1026295=note: print w/replies, xml ) Need Help??

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
    Is there a question in there?

      yes after finding the text using Tkx::FindBar i still have to hightlight it again and hit enter before i can get the result in a variable

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026295]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2016-10-21 21:25 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (291 votes). Check out past polls.