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
>
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
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
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