Re: Querying about the type of a given widget
- From: mike dillon <mdillon standmed com>
- To: GTK-Perl discussion list <gtk-perl-list gnome org>
- Subject: Re: Querying about the type of a given widget
- Date: Wed, 3 Jan 2001 12:08:49 -0800 (PST)
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]