ultibuzz has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
right now i'm wondering if there is a way to find out which button called the sub.
I got 3 Button's labeled 1..3 and all call the same sub "clicked".
Is there a way to know which button called the sub ?
I'm currently using 3 sub's which call the 1 sub with parameters to get which button was pressed.
This is all prototyping, for the main purpose of an auto generated glade GUI,where the majority of button's do nearly the same thing,
like Display info x, where x is the label of the button.
kind regard
Alex
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: GTK2+glade and knowing who called
by Anonymous Monk on Jan 22, 2013 at 03:41 UTC | |
by ultibuzz (Monk) on Jan 22, 2013 at 10:06 UTC | |
by Anonymous Monk on Jan 22, 2013 at 10:18 UTC | |
by roboticus (Chancellor) on Jan 22, 2013 at 11:16 UTC | |
by Anonymous Monk on Jan 22, 2013 at 11:44 UTC | |
| |
by ultibuzz (Monk) on Jan 22, 2013 at 11:40 UTC | |
by Anonymous Monk on Jan 22, 2013 at 12:16 UTC | |
| |
Re: GTK2+glade and knowing who called
by Anonymous Monk on Jan 22, 2013 at 13:30 UTC | |
by ultibuzz (Monk) on Jan 22, 2013 at 13:39 UTC |
Back to
Seekers of Perl Wisdom