GUI:-please answer want to learn GUI programming in python , how should i proceed.
wxjmfauth at gmail.com
wxjmfauth at gmail.com
Tue Dec 17 09:02:13 EST 2013
Le mardi 17 décembre 2013 14:03:03 UTC+1, Robert Kern a écrit :
> On 2013-12-17 11:13, Steven D'Aprano wrote:
>
> > On Tue, 17 Dec 2013 09:39:06 +0000, Mark Lawrence wrote:
>
> >
>
> >> Personally I am convinced that wxPython can't handle unicode for the
>
> >> simple reason that it doesn't yet support Python 3 and we all know that
>
> >> Python 2 and unicode don't mix.
>
> >
>
> > I don't think this is right. The Unicode support in Python 2 isn't as
>
> > good as in Python 3, but it is still pretty good. You just have to
>
> > remember to use the u prefix on your strings.
>
> >
>
> > If it is true that wxPython cannot handle Unicode -- and I see no
>
> > evidence that this is correct --
>
>
>
> It most certainly is not. wxPython has handled Unicode (via `unicode` strings)
>
> for many, many years now.
>
>
>
> --
>
> Robert Kern
>
---
Correct.
Output of my last interactive interpreter I wrote with
that toolkit.
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
>>>
psi runs psizero.py...
...psizero has been executed
>>> '€'
€
>>> print('€')
€
>>> u'€'
?
>>> print(u'€')
?
>>> u'\u20ac'
€
>>> print(u'\u20ac')
€
>>>
And if I cut/copy/paste something like this:
'ሴ䕧'
into that interpreter, it behaves like this ('??'):
>>> u'asdf'
asdf
>>> '??'
??
>>> 999
999
>>> "éléphant"
éléphant
>>> 'éléphant'
éléphant
>>>
jmf
More information about the Python-list
mailing list