|Problems? Is your data what you think it is?
Changing state for gridded Entry?by cniggeler (Sexton)
|on Jun 10, 2023 at 16:15 UTC
cniggeler has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am working on existing Perl/Tk package, quite large, and have a need for a text box that can be grayed out (e.g., until a checkbox is checked elsewhere). The existing code has a combo Label+Entry element which lines up everything nicely BUT I'm having trouble getting to the state of the Entry widget. Here is a boiled down test case:
As you can see, I'm having trouble isolating the state of the Entry widget inside the combo: $state is actually an array, and if I print the array I can see "normal" as one of the array elements, which is incorrect, so for sure it's not the correct state. Is there a way for me to get access to Entry -> state, or do I have to create some other combo widget with easier access? Thanks!