jaime77
August 8th, 2007, 08:19 AM
HI,
im having a problem in a program i made that use Tk::Listbox.
basically in documentation say that by default it create some default binds, particular im trying to use the Up and Down, it say that inside the widget i can browse it by the keys Up and Down, but they are not working.
I read the documentation from activestate
http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/Tk/Listbox.html
maybe is diferent package that i have installed but i checked my Listbox.pm and it have the functions and bind for the keys... so i dont know how to make work as expected.
I have ubuntu, last version, patched at today, and Tk modules were installed from synaptic, dont know if was from ubuntu,universe or multiverse.
Even this short program dont work the bind Up and Down keys
use Tk;
my ( @array, $scalar, $other );
my %options = ( ReturnType => "index" );
my $MW = MainWindow->new();
my $lbox = $MW->Listbox()->pack();
my @list = ( "a", "b", "c", "d", "e", "f" );
$lbox->insert('end', @list );
im having a problem in a program i made that use Tk::Listbox.
basically in documentation say that by default it create some default binds, particular im trying to use the Up and Down, it say that inside the widget i can browse it by the keys Up and Down, but they are not working.
I read the documentation from activestate
http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/Tk/Listbox.html
maybe is diferent package that i have installed but i checked my Listbox.pm and it have the functions and bind for the keys... so i dont know how to make work as expected.
I have ubuntu, last version, patched at today, and Tk modules were installed from synaptic, dont know if was from ubuntu,universe or multiverse.
Even this short program dont work the bind Up and Down keys
use Tk;
my ( @array, $scalar, $other );
my %options = ( ReturnType => "index" );
my $MW = MainWindow->new();
my $lbox = $MW->Listbox()->pack();
my @list = ( "a", "b", "c", "d", "e", "f" );
$lbox->insert('end', @list );