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');
|
|---|
| 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 |