in reply to Re: Scrolling data in Tk
in thread Scrolling data in Tk

Ouch. A quick experiment with pack gets the scrollbar working, as you promised. The output looks ghastly, but that's because it was a quick experiment & I don't grok pack. I was scared of this sort of ambush when I asked about it in Tk: pack, grid or place?, but the closest anyone came was g0n's warning about resizing.

Thank you for this - off to the manuals!

Regards,

John Davies

Replies are listed 'Best First'.
Re^3: Scrolling data in Tk
by jdporter (Paladin) on Nov 20, 2007 at 14:52 UTC

    In this case it's probably much easier to convert to grid, rather than, pack, since you're already in effect faking your own grid layout.

    for (@data) { $chkReport[$i] = $frame ->Checkbutton() ->grid( -column => 0, -row => $i ); #== $lblReport[$i] = $frame ->Label( -text => $_ ) ->grid( -column => 1, -row => $i ); #== $i++; }
    A word spoken in Mind will reach its own level, in the objective world, by its own weight