Re: tkinter text width

2005-04-29 Thread Eric Brunel
On Thu, 28 Apr 2005 16:14:02 GMT, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: On Thu, 28 Apr 2005 10:36:18 +0200, "Eric Brunel" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: This is the case on all platforms, but far more sensible on Windows: Windows attempts to be "clever" and

Re: tkinter text width

2005-04-28 Thread Eric Brunel
On Wed, 27 Apr 2005 12:52:21 -0700, James Stroud <[EMAIL PROTECTED]> wrote: [snip] How might I query the size of a fixed-width font in pixles? It appears that the width of the font in points does not correlate with its width in pixels based on some simple expriments I have done. This is the case on

Re: tkinter text width

2005-04-27 Thread Jeremy Bowers
On Wed, 27 Apr 2005 12:52:21 -0700, James Stroud wrote: > Thank you to everybody helping me. I think I am almost there... > > On Wednesday 27 April 2005 12:10 pm, so sayeth Jeremy Bowers: >> 2. Use a fixed-width font and manually wrap. (It's pretty easy then, you >> can ask the font for how wide

Re: tkinter text width

2005-04-27 Thread James Stroud
Thank you to everybody helping me. I think I am almost there... On Wednesday 27 April 2005 12:10 pm, so sayeth Jeremy Bowers: > 2. Use a fixed-width font and manually wrap. (It's pretty easy then, you > can ask the font for how wide any char is and do the math from there.) How might I query the s

Re: tkinter text width

2005-04-27 Thread Jeremy Bowers
On Wed, 27 Apr 2005 10:52:14 -0700, James Stroud wrote: > This is more or less what I would like, but I would also like to probe the > Text to see how many characters it thinks it can display within the container > window. I am formatting text dynamically and so I rely on the width. I am not > a

Re: tkinter text width

2005-04-27 Thread James Stroud
On Wednesday 27 April 2005 02:31 am, so sayeth Eric Brunel: > The "trick" is to create the Text as small as possible (width=1, height=1), > make it fill its whole container (pack(fill=BOTH, expand=1)), then set the > dimensions for the container window (geometry('500x200')). You'll get a > Text tha

Re: tkinter text width

2005-04-27 Thread Eric Brunel
On Tue, 26 Apr 2005 17:01:46 -0700, James Stroud <[EMAIL PROTECTED]> wrote: Hello All, I would like for a tkinter text widget to be aware of how big the frame that contains it is, then I would like for it to reset its width to the appropriate number of characters when this frame changes size. Errr.

Re: tkinter text width

2005-04-26 Thread Martin Franklin
James Stroud wrote: Hello All, I would like for a tkinter text widget to be aware of how big the frame that contains it is, then I would like for it to reset its width to the appropriate number of characters when this frame changes size. I can get a cget("width") for the text, but this does not