Re: Tkinter: How to get Label wraplength functionality in Text Box

2008-10-30 Thread Mudcat
Awesome...there it goes. I guess my main problem was trying to evaluate the box before it had been displayed (or all the frame propagations were finished). The key was getting the binding in there once I got the count functionality to work. After all that...such a simple function: def textBo

Re: Tkinter: How to get Label wraplength functionality in Text Box

2008-10-30 Thread Guilherme Polo
On 10/30/08, Mudcat <[EMAIL PROTECTED]> wrote: > I'm not sure why my tkinter would not be compiled against 8.5 since I > have the latest version. I assumed that Python 2.6 would have it > without requiring me to do an extra compile. It is not really python's fault if tkinter is compiled against

Re: Tkinter: How to get Label wraplength functionality in Text Box

2008-10-30 Thread Mudcat
I'm not sure why my tkinter would not be compiled against 8.5 since I have the latest version. I assumed that Python 2.6 would have it without requiring me to do an extra compile. However I was able to get it working using the code you gave me. Thanks for that. The only problem is that it seems to

Re: Tkinter: How to get Label wraplength functionality in Text Box

2008-10-29 Thread Guilherme Polo
On 10/29/08, Mudcat <[EMAIL PROTECTED]> wrote: > Sounds like that would work really well. Problem is I can't get it to > work. > > ... > AttributeError: Text instance has no attribute 'count' > ... > Yep, it is not there yet. > I think my usage is correct. I don't have any params at the mome

Re: Tkinter: How to get Label wraplength functionality in Text Box

2008-10-29 Thread Mudcat
Sounds like that would work really well. Problem is I can't get it to work. ... AttributeError: Text instance has no attribute 'count' ... I think my usage is correct. I don't have any params at the moment, but I was just checking the functionality. numlines = widget.count() According to the Tk

Re: Tkinter: How to get Label wraplength functionality in Text Box

2008-10-28 Thread Guilherme Polo
On 10/28/08, Mudcat <[EMAIL PROTECTED]> wrote: > I've tried quite a few things to get this correct but have hit a > couple of sticking points that I can't figure out. I need to ge the > Text box to function like the 'wraplength' option in a Label. > > I've been able to adjust the height of the t

Tkinter: How to get Label wraplength functionality in Text Box

2008-10-28 Thread Mudcat
I've tried quite a few things to get this correct but have hit a couple of sticking points that I can't figure out. I need to ge the Text box to function like the 'wraplength' option in a Label. I've been able to adjust the height of the text by calculating the number of lines needed to display th