Re: more questions :)



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]