Tkinter label height to fit content

rantingrick rantingrick at gmail.com
Sat Sep 3 21:15:52 EDT 2011


On Sep 3, 5:15 pm, Bart Kastermans <bkast... at gmail.com> wrote:

> Any suggestions?

Yeah, have you considered using the "linespace()" method of tk.Font
objects to calculate the height? Although i must say it "feels" as if
your doing something you should not need to do, however i cannot be
sure without knowing more about this GUI. Sounds a lot like trying to
put socks on a rooster.

http://infohost.nmt.edu/tcc/help/pubs/tkinter/std-attrs.html#fonts



More information about the Python-list mailing list