{ package MyYViewMultiplexer; sub new { my $class = shift(@_); return bless([ @_ ], $class); } sub yview { my $self = shift(@_); $_->yview(@_) for @$self; } } $scrollbar->configure(-command => [ 'yview' => MyYViewMultiplexer->new($listboxA, $listboxB) ]);
Of course, that's a hack. The normal way is to have one list with two fields.
In reply to Re: Double Callbacks?
by ikegami
in thread Double Callbacks?
by herby1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |