Hi, On Tue, 13 Feb 2018 17:09:30 -0600 Bryan Oakley <bryan.oak...@gmail.com> wrote:
> 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. huh, did I miss something here? Why not just use size() ? Best regards Michael > > > > 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 > > > > .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. No one wants war. -- Kirk, "Errand of Mercy", stardate 3201.7 _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss