Re: Tkinter special math chars

2005-05-19 Thread Paul Rubin
phil <[EMAIL PROTECTED]> writes: > Using Tkinter to teach high school geometry. Sorta committed to > Tkinter at least for now. Would like to use some special chars like > limits, infinity, square root, cube root and a buch more. If you want to get really fancy, you could do what Wikimedia does:

Re: Tkinter special math chars

2005-05-19 Thread Jeff Epler
On Thu, May 19, 2005 at 12:56:12PM -0500, phil wrote: > Why is it so slow? (RH Linux, 2.4.20, 1.6Ghz AMD) > 3/4 second slower to display widget w/unicode, > even if I encode u'\u221e' u'\u221e' vs u'\N{INFINITY}' should make no noticible run-time difference--they both specify exactly the same stri

Re: Tkinter special math chars

2005-05-19 Thread phil
> text=u"As the function approaches \N{INFINITY}, \N{HORIZONTAL > ELLIPSIS}") Never mind, works in a Text widget, my bad. Why is it so slow? (RH Linux, 2.4.20, 1.6Ghz AMD) 3/4 second slower to display widget w/unicode, even if I encode u'\u221e' Works though, this is great. -- http:/

Re: Tkinter special math chars

2005-05-19 Thread phil
So far, on RedHat Linux: I have used your method successfully in a Label and in Canvas Text. very slow.?? In A Text box I just get \N{INFINITY}. But thanks, I will investigate Text Box more. Jeff Epler wrote: > I wrote the following code: > import Tkinter > t = Tkinter.Label() > t.c

Re: Tkinter special math chars

2005-05-19 Thread Jeff Epler
I wrote the following code: import Tkinter t = Tkinter.Label() t.configure( text=u"As the function approaches \N{INFINITY}, \N{HORIZONTAL ELLIPSIS}") t.pack() t.mainloop() It worked for me on Windows NT 4.0 with Python 2.4, and on RedHat 9 with a self-compiled Python 2.

Tkinter special math chars

2005-05-19 Thread phil
Using Tkinter to teach high school geometry. Sorta committed to Tkinter at least for now. Would like to use some special chars like limits, infinity, square root, cube root and a buch more. in Text Box and Cancas Is there some package I can integrate with Tkinter to do this. Even better would a '