Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Getting selection from Tkx text

by Anonymous Monk
on Mar 27, 2013 at 07:07 UTC ( #1025635=note: print w/ replies, xml ) Need Help??


in reply to Getting selection from Tkx text

Just do it :)


Comment on Re: Getting selection from Tkx text
Re^2: Getting selection from Tkx text
by Anonymous Monk on Mar 27, 2013 at 07:45 UTC

      $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"});

        Is there a question in there?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-07-12 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls