blogan has asked for the wisdom of the Perl Monks concerning the following question:
This will create the list, but it will be at the top, not the bottom. perl 5.6.0 for Linux, Tk 800.023. Any suggestions?#!/usr/bin/perl -w use Tk; use Tk::HList; use strict; my $i; my $mw = MainWindow->new(-title => "HList Example"); my $list = $mw->Scrolled("HList", -header => 1, -columns => 1, -scrollbars => "ose" )->pack; $list->header('create', 0, -text => "Num"); for ($i = 0 ; $i < 100 ; $i++) { $list->add($i); $list->itemCreate($i, 0, -text => $i); } $list->yview('moveto', 1); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk::HList->yview
by yodabjorn (Monk) on Jul 03, 2002 at 02:55 UTC |