Faqts : Business : Programming : Shopping For You : Python : Tkinter

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 11 people (82%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

Anyone know how to use the font measure() thing in tkinter?

Mar 31st, 2009 09:12
Scott Mandarich, unknown unknown, Matthew Dixon Cowles


>>> import Tkinter
>>> foo=Tkinter.Toplevel()
>>> import tkFont
>>> f=tkFont.Font(family="7x13")
>>> f.measure("wibble")
42

The Toplevel() call wouldn't be necessary in your program since you'd
have already called mainloop().












http://65.182.191.43/d/bankruptcy.html