Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Scrolling data in Tk

by jdporter (Canon)
on Nov 20, 2007 at 12:45 UTC ( #651912=note: print w/replies, xml ) Need Help??

in reply to Scrolling data in Tk

It appears to be from your use of place, rather than pack or grid, to position the buttons and labels within the scrolled frame. I guess, by you taking control of the placement geometry, the scrolled geometry manager doesn't have enough information to know when to enable the scrollbars.

A word spoken in Mind will reach its own level, in the objective world, by its own weight

Replies are listed 'Best First'.
Re^2: Scrolling data in Tk
by davies (Parson) on Nov 20, 2007 at 13:02 UTC
    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!


    John Davies

      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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://651912]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2016-10-25 13:39 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (320 votes). Check out past polls.