The actual height of any widget can be obtained with the winfo_height
method. It returns the value in pixels. To get the height in number of
lines you'll have to compute the height of your font and do a little math.



On Tue, Feb 13, 2018 at 12:11 PM, Bob van der Poel <b...@mellowood.ca> wrote:

> Is there a way to get the current height (hopefully in lines) of a
> listbox? I'd like to center, vertically, the result of a search.
>
> --
>
> **** Listen to my FREE CD at http://www.mellowood.ca/music/cedars ****
> Bob van der Poel ** Wynndel, British Columbia, CANADA **
> EMAIL: b...@mellowood.ca
> WWW:   http://www.mellowood.ca
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss@python.org
> https://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to