Re: Text Widget Frame Holder
Daniel Leonard <[email protected]> Sat, 21 Oct 2006 10:11:59 -0700 (PDT)
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <[email protected]> |
Hi everyone. I resolved the problem and thought that the method might be of interest. Unfortunately, there does not seem to be an elegant solution. What worked was to use the scrolled get() method to return percentages which span the visible section of a given scrolled widget. You must then multiply these percentages by the number of lines of information in the scrolled widget (n). This will give you the index numbers of the first and last lines visible on a page. Note that the index numbers begin with 0 and end with n-1. Then cross-reference these numbers to an array containing the information/widgets contained on each line. -Daniel ------------------------------------------------------------------------ âThe traffic moved with the speed one wished for oneâs funeral.â -Joseph Brodsky ------------------------------------------------------------------------ âHe is one of those cases which are more numerous than those suppose who have never lived anywhere but their own homes, and never walked but in one line from their cradles to their graves. We must come down from our heights, and leave our straight paths for the by-ways and low places of life, if we would learn truth by strong contrasts; and in hovels, in forecastles, and among our own outcasts in foreign lands, see what has been wrought among our fellow creatures by accident, hardship, or vice.â-Richard Dana in Two Years Before the Mast --++**==--++**==--++**==--++**==--++**==--++**==--++**== ptk mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/ptk