Re: Querying about the type of a given widget



On Wed, 3 Jan 2001, Randy J. Ray wrote:
All widgets are objects (i.e., blessed references), so you should be able
to do:

      if (ref($widget) eq 'Gtk::Entry') {}

or similar.

e.g.
        if ($widget->isa('Gtk::Entry'))

-md





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