Re: Another newbie question



        Hi,

Fred. Oger wrote:
Hi all,

I have a function which takes a widget (either a Gtk2::Button or a
Gtk2::Entry) as argument. I need to know the type of this widget. Is the
any function to get it ?

        Use ref($widget), that returns a string containg the type. Try it !

        HTH,
--
   \^/
 -/ O \----------------------------------------
| |/ \|       Alexandre (Midnite) Jousset      |
 -|___|----------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]