Re: more questions :)



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?

lanzz
--
$_=q<$_=q<,>;s/,/$_/;print;>;s/,/$_/;





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