Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Tk::LabEntry - how to reach the configuration of label via callback?

by beech (Parson)
on Feb 07, 2016 at 21:43 UTC ( [id://1154609]=note: print w/replies, xml ) Need Help??


in reply to Tk::LabEntry - how to reach the configuration of label via callback?

If you add a few print/warn statements, you can see that $le is Tk::LabEntry=HASH(0x10b7f8c) but that the bind callback gets a Tk::Entry=HASH(0x10d47cc)

You could use Tk::Widget method parent to get back to LabEntry, like this  $_[0]->parent->configure( -labelBackground => 'red');

  • Comment on Re: Tk::LabEntry - how to reach the configuration of label via callback?
  • Download Code

Replies are listed 'Best First'.
Re^2: Tk::LabEntry - how to reach the configuration of label via callback?
by vagabonding electron (Curate) on Feb 08, 2016 at 17:38 UTC

    This works as expected, thank you very much!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-19 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found