Re: mnemonic labels (was Re: Remove spaces in dialog window)
- From: Beast <beast i6x org>
- To: gtk-perl-list gnome org
- Subject: Re: mnemonic labels (was Re: Remove spaces in dialog window)
- Date: Thu, 04 Aug 2005 20:15:32 +0700
You can set the label to be the mnemonic for another widget.
# new() is aliased to new_with_mnemonic() in the perl bindings:
$label = Gtk2::Label->new ('_User Name');
$entry = Gtk2::Entry->new;
# set $label to be the mnemonic for $entry
It seems does not work with my version of perl-gtk
*** unhandled exception in callback:
*** Can't locate object method "set_mnemonic_for" via package
"Gtk2::Label" at Testing.pm line 35, <DATA> line 225.
*** ignoring at ./testme.pl line 10, <DATA> line 225.
I also need to use new_with_mnemonic instead of just new();
[root tulip]# rpm -qa |grep perl-Gtk
] [Thread Prev