Re: nDimensional sparse histogram in python.

2006-02-01 Thread rajasekaran . natarajan
Hi you can use has_key() to check whether the particular value is in the key set or not. >>> a = {} >>> a[1] = 22 >>> a[2] = 33 >>> a {1: 22, 2: 33} >>> a.has_key(3) False >>> a.has_key(1) True >>> -raj KraftDiner wrote: > Ok so this is nice.. Just one thing.. When you try to get a value from >

Re: UNew to Tkinter nicodeEncodeError:Japanese

2005-12-22 Thread rajasekaran . natarajan
Thanks a lot for your reply Mr.Lundh Yeah you are correct, Tkinter is automatically converting the words to unicode, so there is no need to decode again, also there is no need to encode in the print statement so, your assumption is correct but the encode statement at print gave me wrong kanjis [J

Re: UNew to Tkinter nicodeEncodeError:Japanese

2005-12-22 Thread rajasekaran . natarajan
Thanks a lot for your reply Mr.Lundh Yeah you are correct, Tkinter is automatically converting the words to unicode, so there is no need to decode again, also there is no need to encode in the print statement so, your assumption is correct but the encode statement at print gave me wrong kanjis [J

UNew to Tkinter nicodeEncodeError:Japanese

2005-12-22 Thread rajasekaran . natarajan
Hi friends, I am writing my Japanese study program and a GUIt. I am facing a problem in an entry widget where I enter Japanese words. The entered Japanese word is accessed by the callback function and used for some processes. It is working well when I enter english values. But giving unicodeEnco