Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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


Comment on Re: Scrolling data in Tk
Select or Download Code
Re^2: Scrolling data in Tk
by davies (Vicar) 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!

    Regards,

    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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-07-29 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls