|laziness, impatience, and hubris|
Passing multiple user data GLADEby hakim-djz (Novice)
|on Mar 14, 2014 at 17:43 UTC||Need Help??|
hakim-djz has asked for the
wisdom of the Perl Monks concerning the following question:
I am making a gui with glade at the moment. Now I've got the gui setup the way I want, but all that's left is to run my scripts from the events.
So I have four text entry boxes that are sitting in a container box. I want the values from them, however in glade you can only pass a single parameter as user data to the callback function.
Is there any way, or how do you pass the multiple text entry boxes to the callback function?
Here is my callback function:
Okay I've advanced a bit and got this below
This however gives me part of what I need, as it gives the value of the first entry. Here's the terminal output
I just used the id's of the children and used the following code.
For some reason when I was trying to assign values through a loop it wouldn't work, so just did it manually as above. Thanks for all the replies