Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'string.': 0.05; 'encoded': 0.07; 'utf-8': 0.07; 'string': 0.09; 'wrapper': 0.09; 'python': 0.11; 'guys,': 0.16; 'igor': 0.16; 'instead:': 0.16; 'string:': 0.16; 'subject: \n ': 0.16; 'subject:GUI': 0.16; 'subject:programming': 0.16; 'unicode.': 0.16; 'wxpython': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'library': 0.18; 'print': 0.22; 'byte': 0.24; 'bytes': 0.24; 'string,': 0.24; 'text,': 0.24; 'unicode': 0.24; 'mon,': 0.24; 'versions': 0.24; "haven't": 0.24; 'looks': 0.24; '2.0': 0.26; 'shown': 0.26; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'am,': 0.29; 'dec': 0.30; 'subject:please': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'usually': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'view.': 0.31; 'probably': 0.32; 'url:python': 0.33; 'skip:u 20': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'c++': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'thank': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'even': 0.60; 'most': 0.60; 'subject:Fwd': 0.61; "you're": 0.61; 'you.': 0.62; 'decided': 0.64; 'said:': 0.68; '2.7.': 0.84; '2.8.': 0.84; 'compare:': 0.84; '2013,': 0.91; 'subject:want': 0.91; 'subject:answer': 0.95; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=stgt0TO6q0FcVSi3MoYbYj1ixdXZ2+9ju+AsHJktspg=; b=ojhrxsOTqtL3lqRN9k/rzHbyJLntqznrGqez3jVeZCePE+DsAoZZ+BeW2bB3mACCzI fkklu95XD6qPwVKRn7kV8DS3dT447noXZ7mBT/GinkAQQvFtvQ9t5gpHDfBrE4eKZVGQ ltBB+rJ4lBKQfZWYNTeu4lQqUdrGvy6Rpzi4z/QrjPSwrbib3vELRdbUWLilhQLjXyiT ImhacuGA5WiFsUU7nsU5eJ8tXJwfM5507vt767lNtKTgwDk/uzEw4d5JpRKeykBvhVmY 1AqkK4383g5Tp+2+RMmoo5FkAgFaRpzaMVaHKCPtSBRroOBF+TV7ukf6RNkU65cOMTzB 6sJg== MIME-Version: 1.0 X-Received: by 10.220.79.199 with SMTP id q7mr4662954vck.38.1387286888808; Tue, 17 Dec 2013 05:28:08 -0800 (PST) In-Reply-To: <20131217111353.GF29356@ando> References: <20131214180549.59e9831a6faf098b754ea00a@gmx.net> <52ace2c0$0$29992$c3e8da3$5496439d@news.astraweb.com> <52ade081$0$29976$c3e8da3$5496439d@news.astraweb.com> <9846a594-e415-4ab8-8df7-67d10a081ffc@googlegroups.com> <52b01978$0$29973$c3e8da3$5496439d@news.astraweb.com> <20131217111353.GF29356@ando> Date: Tue, 17 Dec 2013 05:28:08 -0800 Subject: Fwd: GUI:-please answer want to learn GUI programming in python , how should i proceed. From: Igor Korot To: python-list@python.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 85 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387286897 news.xs4all.nl 2876 [2001:888:2000:d::a6]:32777 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62185 On Tue, Dec 17, 2013 at 01:36:43AM -0800, Igor Korot wrote: > Hi, guys, > > On Tue, Dec 17, 2013 at 1:29 AM, Steven D'Aprano wr= ote: > > On Mon, 16 Dec 2013 23:58:15 -0800, wxjmfauth wrote: > I think you are doing exactly what Steven D'Aprano said: Please compare: "abc" vs 'abc' from wxPython point of view. Also remember that wxPython is a wrapper around C++ library where string are usually defined with double quotes. Thank you. > > > >> From all the toolkits, wxPython is probably the most interesting. I us= ed > >> all versions from 2.0 (?) up to 2.8. Then it has been decided to go > >> unicode. > >> > >> Let see in the wx interactive intepreter, it is only the top of the > >> iceberg. (Py27, wxPy294) > >> > >>>>> len('=E1=88=B4=D0=83') > >> 5 > > > > > > What does that have to do with wxPython? It looks like you're just mis- > > using Python 2.7. > > > > In Python 2.7, '=E1=88=B4=D0=83' is not a Unicode string, it is a byte = string. The > > exact bytes you get are not well-defined but on many systems you may ge= t > > a UTF-8 encoded byte string: > > > > > > py> sys.version > > '2.7.4 (default, Apr 18 2013, 17:48:59) \n[GCC 4.4.5]' > > py> for b in '=E1=88=B4=D0=83': > > ... print hex(ord(b)), b > > ... > > 0xe1 > > 0x88 =EF=BF=BD > > 0xb4 =EF=BF=BD > > 0xd0 > > 0x83 =EF=BF=BD > > > > > > If you use a Unicode string instead: > > > > py> for c in u'=E1=88=B4=D0=83': > > ... print hex(ord(c)), c > > ... > > 0x1234 =E1=88=B4 > > 0x403 =D0=83 > > > > py> for b in u'=E1=88=B4=D0=83'.encode('utf-8'): > > ... print hex(ord(b)), b > > ... > > 0xe1 > > 0x88 =EF=BF=BD > > 0xb4 =EF=BF=BD > > 0xd0 > > 0x83 =EF=BF=BD > > > > > > > > Even if it is true that wxPython cannot handle Unicode text, you haven'= t > > shown it here. > > > > > > > > -- > > Steven > > -- > > https://mail.python.org/mailman/listinfo/python-list >