in reply to Re: Tk:Text resize dillema
in thread Tk:Text resize dillema

Thanks for the reply. I've played around with the dlineinfo() method, but it returns information in Pixels. How do I convert from pixels to actual width of characters and height of lines?

Replies are listed 'Best First'.
Re^3: Tk:Text resize dillema
by eserte (Deacon) on Jan 04, 2007 at 20:37 UTC
    You can use the ascent/descent information from the fontMetrics call. Of course, this does not help if you have embedded images or widgets in your text widget.