Re: more questions :)
- From: Gavin Jefferies <gj262 yahoo com>
- To: gtk-perl-list gnome org
- Subject: Re: more questions :)
- Date: 10 May 2002 08:48:01 -0700
lanzz lanzz org writes:
On 9 May 2002, Gavin Jefferies wrote:
sub displayEvent {
my $list = shift;
my $event = shift;
...
if ($event->{'type'} eq '2button_press') {
(my $row, my $col) = $list->get_selection_info($event->{'x'}, $event->{'y'});
...
}
}
$list->signal_connect('key_press_event', \&displayEvent);
This tells me where it happened and I can work from there.
hm, this might do. but shouldn't it be button_press_event in the signal_connect?
Yes it should. I pasted the wrong part in for the example. tut tut.
Gavin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]