Converting Unicode to integer

rzed Dick.Zantow at lexisnexis.com
Tue Aug 27 11:35:32 EDT 2002


"Nikola Plejic" <Nikola.Plejic at pu.CARNet.hr> wrote in message
news:akfvki$eot$1 at bagan.srce.hr...
> Oh, okay, sorry (feeling embarrassed now :)).
>
> Here's my attempt in using int():
>
> from anygui import *
>
> def handler(**kw):
>     a = txt.text
>     b = txt2.text
>     int(a)
>     int(b)

Right here. int(a) produces a result, which then ignore.
   a = int(a)
   b = int(b)
    ... would fit into the next statement and work as you expect.

--
rzed





More information about the Python-list mailing list