Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61889 > unrolled thread
| Started by | Jai <jaiprakashsingh213@gmail.com> |
|---|---|
| First post | 2013-12-14 04:12 -0800 |
| Last post | 2013-12-23 11:24 -0800 |
| Articles | 20 on this page of 106 — 27 participants |
Back to article view | Back to comp.lang.python
GUI:-please answer want to learn GUI programming in python , how should i proceed. Jai <jaiprakashsingh213@gmail.com> - 2013-12-14 04:12 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-14 23:25 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Jai <jaiprakashsingh213@gmail.com> - 2013-12-14 04:46 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. rurpy@yahoo.com - 2013-12-14 09:42 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-14 18:11 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-14 13:10 -0700
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-14 18:05 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-14 17:54 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-14 13:01 -0700
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-14 22:59 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Grant Edwards <invalid@invalid.invalid> - 2013-12-15 14:53 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-15 17:01 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-16 09:06 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Kevin Walzer <kw@codebykevin.com> - 2013-12-16 09:55 -0500
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-17 02:20 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Kevin Walzer <kw@codebykevin.com> - 2013-12-16 10:32 -0500
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-17 03:10 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Grant Edwards <invalid@invalid.invalid> - 2013-12-16 16:46 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-17 03:52 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Grant Edwards <invalid@invalid.invalid> - 2013-12-16 17:04 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Christian Gollwitzer <auriocus@gmx.de> - 2013-12-16 23:12 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-17 11:37 +1300
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Grant Edwards <invalid@invalid.invalid> - 2013-12-17 04:27 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Christian Gollwitzer <auriocus@gmx.de> - 2013-12-16 23:06 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-17 09:40 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Christian Gollwitzer <auriocus@gmx.de> - 2013-12-17 10:33 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-18 00:19 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Terry Reedy <tjreedy@udel.edu> - 2013-12-16 19:10 -0500
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 04:21 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Rick Johnson <rantingrickjohnson@gmail.com> - 2013-12-16 21:37 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-17 16:47 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 05:48 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-16 23:58 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 08:33 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-17 01:18 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 09:44 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Steven D'Aprano <steve@pearwood.info> - 2013-12-17 09:29 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 09:39 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-17 11:13 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Robert Kern <robert.kern@gmail.com> - 2013-12-17 13:03 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-17 06:02 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-17 06:43 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 14:52 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 13:47 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-17 04:19 -0800
Fwd: GUI:-please answer want to learn GUI programming in python , how should i proceed. Igor Korot <ikorot01@gmail.com> - 2013-12-17 05:28 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Christian Gollwitzer <auriocus@gmx.de> - 2013-12-17 09:11 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-14 13:04 -0700
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-15 16:33 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-15 10:19 -0700
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-12-15 18:52 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-17 16:26 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-15 17:59 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Ned Deily <nad@acm.org> - 2013-12-14 12:36 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Terry Reedy <tjreedy@udel.edu> - 2013-12-14 16:00 -0500
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Jeremy Sanders <jeremy@jeremysanders.net> - 2013-12-16 09:28 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Tamer Higazi <tameritoke2@arcor.de> - 2013-12-16 02:34 +0200
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-16 01:18 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Tamer Higazi <tameritoke2@arcor.de> - 2013-12-16 06:09 +0200
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-17 16:07 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Terry Reedy <tjreedy@udel.edu> - 2013-12-17 13:11 -0500
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-23 18:59 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-23 11:05 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-24 06:14 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-23 19:22 +0000
Please stop the trolling Terry Reedy <tjreedy@udel.edu> - 2013-12-23 15:53 -0500
Re: Please stop the trolling wxjmfauth@gmail.com - 2013-12-24 02:22 -0800
Re: Please stop the trolling Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-24 14:58 +0000
Re: Please stop the trolling Ned Batchelder <ned@nedbatchelder.com> - 2013-12-24 10:28 -0500
Re: Please stop the trolling Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-24 15:55 +0000
Re: Please stop the trolling Ned Batchelder <ned@nedbatchelder.com> - 2013-12-24 11:04 -0500
Re: Please stop the trolling Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-23 23:52 +0000
Re: Please stop the trolling Joshua Landau <joshua@landau.ws> - 2013-12-26 07:58 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-15 21:51 -0700
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-17 16:01 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-15 21:55 -0700
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-15 21:56 -0700
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-16 15:57 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-16 16:08 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-17 16:00 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-17 11:06 -0700
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-17 11:00 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 19:33 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-18 01:24 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-18 16:45 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-19 00:10 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-19 08:25 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-19 01:10 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-19 09:23 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-19 16:32 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-20 03:20 +1100
Re: GUI:-please answer want to learn GUI programming in python ,
how should i proceed. Dave Angel <davea@davea.name> - 2013-12-20 01:30 -0500
Re: Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-20 17:57 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Martin Schöön <martin.schoon@gmail.com> - 2013-12-20 17:52 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-20 18:00 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Martin Schöön <martin.schoon@gmail.com> - 2013-12-21 13:25 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-20 10:34 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-16 09:42 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-16 22:58 +1100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-16 13:58 +0000
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. 88888 Dihedral <dihedral88888@gmail.com> - 2013-12-16 08:34 -0800
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-17 16:00 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-17 11:13 -0700
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-19 16:10 +0100
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Ned Batchelder <ned@nedbatchelder.com> - 2013-12-19 10:22 -0500
Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Dan Stromberg <drsalists@gmail.com> - 2013-12-23 11:24 -0800
Page 3 of 6 — ← Prev page 1 2 [3] 4 5 6 Next page →
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2013-12-17 06:02 -0800 |
| Message-ID | <d0d5929c-1985-4d98-a08d-8084daa51d22@googlegroups.com> |
| In reply to | #62183 |
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
[toc] | [prev] | [next] | [standalone]
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2013-12-17 06:43 -0800 |
| Message-ID | <d442a622-1226-4aed-ab50-6528cb877505@googlegroups.com> |
| In reply to | #62188 |
Addendum. I should say, I had also a lot of fun in writing my own "styling engine". Because when one has to deal with a language, which does not recognize its own keywords... >>> 1and 444 444 >>> tokenize.py could have been a solution, but it's really too slow. jmf
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-12-17 14:52 +0000 |
| Message-ID | <mailman.4287.1387291946.18130.python-list@python.org> |
| In reply to | #62192 |
On 17/12/2013 14:43, wxjmfauth@gmail.com wrote: > Addendum. > > I should say, I had also a lot of fun in writing my own > "styling engine". > > Because when one has to deal with a language, which does > not recognize its own keywords... > >>>> 1and 444 > 444 >>>> > > tokenize.py could have been a solution, but it's really > too slow. > > jmf > To what, where is your context, my crystal ball is broken again? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-12-17 13:47 +0000 |
| Message-ID | <mailman.4281.1387288037.18130.python-list@python.org> |
| In reply to | #62179 |
On 17/12/2013 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 -- then it is due to the underlying wx* > library, not Python 2. > > Sorry folks, I'd been up all night and messed that up completely. I meant to say "Personally I am convinced that *IF* wxPython can't handle unicode *IT WILL BE* for the simple reason that it doesn't yet support Python 3 and we all know that Python 2 and unicode don't mix". It would have been better still if I'd added right at the end "particularly well", with this being the impression I get from the bug tracker, with far fewer bugs being raised against Python 3 unicode that I'm aware of rather than Python 2. I'm now crossing my fingers and legs and hoping that my impression is correct. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2013-12-17 04:19 -0800 |
| Message-ID | <ef4ff5da-6743-4dea-b596-94084df7e25d@googlegroups.com> |
| In reply to | #62169 |
Le mardi 17 décembre 2013 10:29:28 UTC+1, Steven D'Aprano a écrit :
> On Mon, 16 Dec 2013 23:58:15 -0800, wxjmfauth wrote:
>
>
>
> > From all the toolkits, wxPython is probably the most interesting. I used
>
> > 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('ሴЃ')
>
> > 5
>
>
>
>
>
> What does that have to do with wxPython? It looks like you're just mis-
>
> using Python 2.7.
>
>
>
> In Python 2.7, 'ሴЃ' 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 get
>
> 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 'ሴЃ':
>
> ... print hex(ord(b)), b
>
> ...
>
> 0xe1
>
> 0x88 �
>
> 0xb4 �
>
> 0xd0
>
> 0x83 �
>
>
>
>
>
> If you use a Unicode string instead:
>
>
>
> py> for c in u'ሴЃ':
>
> ... print hex(ord(c)), c
>
> ...
>
> 0x1234 ሴ
>
> 0x403 Ѓ
>
>
>
> py> for b in u'ሴЃ'.encode('utf-8'):
>
> ... print hex(ord(b)), b
>
> ...
>
> 0xe1
>
> 0x88 �
>
> 0xb4 �
>
> 0xd0
>
> 0x83 �
>
>
>
>
>
>
>
> Even if it is true that wxPython cannot handle Unicode text, you haven't
>
> shown it here.
>
>
>
>
>
>
Quich answer.
That's PyShell, the wxPy interpreter.
You are right in pointing all this missmatch: byte string,
unicode, utf-8, mixing a "unicode" tool kit wiht a non
unicode native engine, plus plenty of related things, ...
You may be not aware. I contributed to wxPython from
practically 2.0, 2.1. 2.2 during 6, 7, 8 yeaurs, testing,
reporting about/with all versions, then I gave up.
---
Yout quote.
"Even if it is true that wxPython cannot handle Unicode text..."
It's a confusing vision and that's not correct. It's a little bit
more complicate than this.
jmf
[toc] | [prev] | [next] | [standalone]
| From | Igor Korot <ikorot01@gmail.com> |
|---|---|
| Date | 2013-12-17 05:28 -0800 |
| Subject | Fwd: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4280.1387286897.18130.python-list@python.org> |
| In reply to | #62169 |
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 <steve@pearwood.info> wrote:
> > 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 used
> >> 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('ሴЃ')
> >> 5
> >
> >
> > What does that have to do with wxPython? It looks like you're just mis-
> > using Python 2.7.
> >
> > In Python 2.7, 'ሴЃ' 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 get
> > 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 'ሴЃ':
> > ... print hex(ord(b)), b
> > ...
> > 0xe1
> > 0x88 �
> > 0xb4 �
> > 0xd0
> > 0x83 �
> >
> >
> > If you use a Unicode string instead:
> >
> > py> for c in u'ሴЃ':
> > ... print hex(ord(c)), c
> > ...
> > 0x1234 ሴ
> > 0x403 Ѓ
> >
> > py> for b in u'ሴЃ'.encode('utf-8'):
> > ... print hex(ord(b)), b
> > ...
> > 0xe1
> > 0x88 �
> > 0xb4 �
> > 0xd0
> > 0x83 �
> >
> >
> >
> > 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
>
[toc] | [prev] | [next] | [standalone]
| From | Christian Gollwitzer <auriocus@gmx.de> |
|---|---|
| Date | 2013-12-17 09:11 +0100 |
| Message-ID | <l8p109$5go$1@dont-email.me> |
| In reply to | #62155 |
Am 17.12.13 06:37, schrieb Rick Johnson:
> On Sunday, December 15, 2013 11:01:53 AM UTC-6, Steven D'Aprano wrote:
>> low-level language with some interface to Python. The main
>> difference between this hypothetical "Python GUI" and Tcl
>> is that Tcl is a Turing-complete interpreter which lives
>> in it's own process.
>
> And how many times would you take advantage of that "turning
> complete" functionality in reality? My answer... ZERO! How
> many Tcl calls have you, or anybody, made that did have
> direct business with creating or managing a TK gui? HOW
> MANY???
There are some useful extensions to Tk written in Tcl. For example,
there is tablelist - a tree widget or multicolumn listbox in pure Tcl.
By passing it to the Tcl interpreter, you can wrap it up for Python -
that's what Kevin Walzer did at
http://tkinter.unpythonic.net/wiki/TableListWrapper
It would take many man-month to reproduce this thing in Python.
Another example is the file open dialog (import tkFileDialog). On
Windows and OSX, it uses the native variants, but on X11 it uses a very
outdated, ugly and hard to use thing bundled with Tk. With just a few
lines executed by some Tk.eval('source myfixes.tcl'), I overwrite this
dialog box with the one created by Schelte Bron:
http://wiki.tcl.tk/15897
For reference, here is myfixes.tcl:
lappend auto_path [file dirname [info script]]
if {[tk windowingsystem] == "x11" } {
package require fsdialog
interp alias {} tk_getOpenFile {} ttk::getOpenFile
interp alias {} tk_getSaveFile {} ttk::getSaveFile
interp alias {} tk_chooseDirectory {} ttk::chooseDirectory
}
Christian
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2013-12-14 13:04 -0700 |
| Message-ID | <mailman.4124.1387051479.18130.python-list@python.org> |
| In reply to | #61904 |
On 12/14/2013 10:05 AM, Wolfgang Keller wrote: > PyQt looks native everywhere, but it might be a bit overweight, > depending on what you want to do and where your applications need to > run. > > And then there's the licensing issue, since PyQt, unlike Qt itself, is > not available under LGPL afaik. For closed-source commercial > applications, there seems to be a way to use a commercially licensed > PyQt (much less expensive than Qt itself) together with LGPL-Qt > however. Pyside would be a LGPL alternative to PyQt, but it doesn't > seem to be as up-to-date as PyQt. I think PyQt is slowly being pushed aside in favor of PySide, which is more license-friendly for use in closed or open projects. I would recommend using PySide unless PyQt is a requirement for your project.
[toc] | [prev] | [next] | [standalone]
| From | Wolfgang Keller <feliphil@gmx.net> |
|---|---|
| Date | 2013-12-15 16:33 +0100 |
| Message-ID | <20131215163319.08824581b639146aae04307d@gmx.net> |
| In reply to | #61914 |
> I think PyQt is slowly being pushed aside in favor of PySide, which is > more license-friendly for use in closed or open projects. I would > recommend using PySide unless PyQt is a requirement for your project. Except the issue that Pyside always seems to lag a bit behind Qt releases, while PyQt usually supports more recent releases of Qt. Besides that, according to what I've been reading on the PyQt mailing list, support is impressive. The developer often fixes issues over night, if there actually are any. And besides, again, a commercially licensed PyQt itself isn't *that* expensive. Sincerely, Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2013-12-15 10:19 -0700 |
| Message-ID | <mailman.4147.1387128010.18130.python-list@python.org> |
| In reply to | #61948 |
On 12/15/2013 08:33 AM, Wolfgang Keller wrote: >> I think PyQt is slowly being pushed aside in favor of PySide, which is >> more license-friendly for use in closed or open projects. I would >> recommend using PySide unless PyQt is a requirement for your project. > > Except the issue that Pyside always seems to lag a bit behind Qt > releases, while PyQt usually supports more recent releases of Qt. Which is a bit odd, seeing as Pyside is an official Qt project. It was started by Nokia when they owned Qt, and now is hosted at the official Qt web site. > Besides that, according to what I've been reading on the PyQt mailing > list, support is impressive. The developer often fixes issues over > night, if there actually are any. And besides, again, a commercially > licensed PyQt itself isn't *that* expensive. That's good to know.
[toc] | [prev] | [next] | [standalone]
| From | Chris “Kwpolska” Warrick <kwpolska@gmail.com> |
|---|---|
| Date | 2013-12-15 18:52 +0100 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4148.1387129958.18130.python-list@python.org> |
| In reply to | #61948 |
On Sun, Dec 15, 2013 at 4:33 PM, Wolfgang Keller <feliphil@gmx.net> wrote:
> And besides, again, a commercially licensed PyQt itself isn't *that*
> expensive.
> The cost of a commercial PyQt license for a single developer is £350
> (GBP). You may pay in either US Dollars, Euros or GBP.
(£420 incl. VAT for UK and select EU entities)
> one [license] per developer
For some people, it might be a lot. Why waste money on something,
that has an almost-identical free-for-everyone version? (which also is
easier to install, BTW)
> PyQt does not include Qt itself. You must also obtain an
> appropriately licensed copy (either the commercial version from
> Digia or the LGPL version from the Qt Project).
So, you have four options:
a) use PySide and Qt@Project, pay $0 and be sane (albeit saner than
person B);
b) use PyQt4 and Qt@Digia, pay £350/£420 + £??? and be sane;
c) use PySide and Qt@Digia, pay £??? and look like a hypocrite (albeit
less than person D);
d) use PyQt4 and Qt@Project, pay £350/£420 and look like a hypocrite.
DISCLAIMER: Some things are based on assumptions, many of which may be
incorrect.
PS. For those living in the past without proper Unicode support: £ = GBP.
--
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense
[toc] | [prev] | [next] | [standalone]
| From | Wolfgang Keller <feliphil@gmx.net> |
|---|---|
| Date | 2013-12-17 16:26 +0100 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4290.1387294295.18130.python-list@python.org> |
| In reply to | #61960 |
> On Sun, Dec 15, 2013 at 4:33 PM, Wolfgang Keller <feliphil@gmx.net> > wrote: > > And besides, again, a commercially licensed PyQt itself isn't *that* > > expensive. > > > The cost of a commercial PyQt license for a single developer is £350 > > (GBP). You may pay in either US Dollars, Euros or GBP. I didn't write the second paragraph. Please learn to quote, thanks. > (£420 incl. VAT for UK and select EU entities) For a commercial developer that doesn't appear much to me. I know Qt applications that cost ~100.000 EUR per seat. Others are so valuable that they simply aren't sold at all. Wingware since recently uses PyQt and their prices don't seem to have skyrocketed since the migration from PyGTK. > > one [license] per developer > > For some people, it might be a lot. Why waste money on something, > that has an almost-identical free-for-everyone version? (which also is > easier to install, BTW) Because PySide is *far* from identical. > > PyQt does not include Qt itself. You must also obtain an > > appropriately licensed copy (either the commercial version from > > Digia or the LGPL version from the Qt Project). Thanks again for learning to quote correctly. I did not write this paragraph. > So, you have four options: If you need something that's actually supported, Pyside (currently) doesn't look like a credible option to me. And for "home users", education etc., the GPL version of PyQt seems perfect to me. Sincerely, Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-12-15 17:59 +0000 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4149.1387130373.18130.python-list@python.org> |
| In reply to | #61948 |
On 15/12/2013 17:52, Chris “Kwpolska” Warrick wrote: > On Sun, Dec 15, 2013 at 4:33 PM, Wolfgang Keller <feliphil@gmx.net> wrote: >> And besides, again, a commercially licensed PyQt itself isn't *that* >> expensive. > >> The cost of a commercial PyQt license for a single developer is £350 >> (GBP). You may pay in either US Dollars, Euros or GBP. > > (£420 incl. VAT for UK and select EU entities) Four weeks income, no thanks :( > >> one [license] per developer > > For some people, it might be a lot. Why waste money on something, > that has an almost-identical free-for-everyone version? (which also is > easier to install, BTW) > >> PyQt does not include Qt itself. You must also obtain an >> appropriately licensed copy (either the commercial version from >> Digia or the LGPL version from the Qt Project). > > So, you have four options: > > a) use PySide and Qt@Project, pay $0 and be sane (albeit saner than > person B); > b) use PyQt4 and Qt@Digia, pay £350/£420 + £??? and be sane; > c) use PySide and Qt@Digia, pay £??? and look like a hypocrite (albeit > less than person D); > d) use PyQt4 and Qt@Project, pay £350/£420 and look like a hypocrite. > > DISCLAIMER: Some things are based on assumptions, many of which may be > incorrect. > > PS. For those living in the past without proper Unicode support: £ = GBP. > Thanks for making my day, I've roared with laughter at the PS. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Ned Deily <nad@acm.org> |
|---|---|
| Date | 2013-12-14 12:36 -0800 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4126.1387053401.18130.python-list@python.org> |
| In reply to | #61904 |
In article <52ACB936.3020000@gmail.com>, Michael Torrie <torriem@gmail.com> wrote: > On 12/14/2013 10:05 AM, Wolfgang Keller wrote: > > Tkinter is a bit "special" to use since it's not just a library, but > > uses some kind of RPC. It seems that "look and feel" have been greatly > > improved lately. > I know Tkinter originated with the Tcl/Tk language. With Tkinter in > Python is it still using Tcl/Tk under the hood? IE embeds the Tcl > language interpreter into Python's interpreter? Yes, it does. > If so I've always found > it a bit strange that the de facto GUI library that's shipped with > Python ships an entirely different language with it under the hood. It is a bit strange but, back in the day, there wasn't a better multi-platform GUI option and, even today, Tk (and Tcl) remain attractive because it is supported on the many important platforms and does not have the license issues that some other GUI toolkits have had. And because of inertia. Also, Python is not alone in this: Perl and Ruby also have Tk bindings that work the same way, AFAIK. -- Ned Deily, nad@acm.org
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2013-12-14 16:00 -0500 |
| Message-ID | <mailman.4127.1387054870.18130.python-list@python.org> |
| In reply to | #61904 |
On 12/14/2013 3:01 PM, Michael Torrie wrote: > On 12/14/2013 10:05 AM, Wolfgang Keller wrote: >> Tkinter is a bit "special" to use since it's not just a library, but >> uses some kind of RPC. It seems that "look and feel" have been greatly >> improved lately. > > I know Tkinter originated with the Tcl/Tk language. Tcl is the language. Its standard interpreter is written in C, as with Python. (I do not know if there are other Tcl implementations.) Tk is the gui framework written, I believe, in a mixture of Tcl and C. Tkinter (Tk interface) is entirely a Python to Tcl/Tk and back interface. > With Tkinter in Python is it still using Tcl/Tk under the hood? Yes. _tkinter.c defines Python-callable functions that call Tcl/Tk C api functions. tkinter.py defines Python classes and methods. The methods call _tkinter functions. Most of the classes correspond to Tk widgets such as Button and Text. > IE embeds the Tcl language interpreter into Python's interpreter? Both interpreters run in one process. > If so I've always found > it a bit strange that the de facto GUI library that's shipped with > Python ships an entirely different language with it under the hood. Tcl/Tk is only shipped with the Windows Python installer. On other systems, it is a separate install if not already present. There once (over 10 years ago) was a project to re-write Tk entirely in C. What I read it that people decided that Tk made too much use of Tcl functions to make that worthwhile. There have been starts on projects to write a gui framework based on Python and wrapped C libraries. PyGui is one, last updated July 2011. http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | Jeremy Sanders <jeremy@jeremysanders.net> |
|---|---|
| Date | 2013-12-16 09:28 +0100 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4186.1387182493.18130.python-list@python.org> |
| In reply to | #61904 |
Michael Torrie wrote: > I think PyQt is slowly being pushed aside in favor of PySide, which is > more license-friendly for use in closed or open projects. I would > recommend using PySide unless PyQt is a requirement for your project. That's not the impression I get from the PySide mailing lists. Work seems slow now everyone is a volunteer. For example, Qt 5 is not yet supported (there's no effort towards this according to the mailing list) and bugs seem to take a long time to be fixed. PyQt support is much better, even when I'm using it for a free project. Jeremy
[toc] | [prev] | [next] | [standalone]
| From | Tamer Higazi <tameritoke2@arcor.de> |
|---|---|
| Date | 2013-12-16 02:34 +0200 |
| Message-ID | <mailman.4160.1387156155.18130.python-list@python.org> |
| In reply to | #61889 |
For wxPython there is a good book. You will feel convinient. But to be honest, I don't believe that Python is the best choice for GUI development, but it's only an opinion. Otherwise I would advise you going into C++ and code with wxWidgets. Tamer On 14.12.2013 14:12, Jai wrote: > GUI:-want to learn GUI programming in python , how should i proceed. > > There are lots of book here so I am confuse which book i should refer so that i don't waste time . please answer
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-12-16 01:18 +0000 |
| Message-ID | <mailman.4161.1387156741.18130.python-list@python.org> |
| In reply to | #61889 |
On 16/12/2013 00:34, Tamer Higazi wrote: > > But to be honest, I don't believe that Python is the best choice for GUI > development, but it's only an opinion. > Otherwise I would advise you going into C++ and code with wxWidgets. > > Tamer > Can you state why you prefer C++ and wxWidgets over Python and wxPython, which wraps wxWidgets? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Tamer Higazi <tameritoke2@arcor.de> |
|---|---|
| Date | 2013-12-16 06:09 +0200 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4172.1387168848.18130.python-list@python.org> |
| In reply to | #61889 |
Hi Mark! It is an advise, in which language somebody wants to code is of course everybodys free choice. However, I believe according wxWidgets it would be better coding in the native language the system had been developed. The other thing, specially if you would make a customer project, I don't know how to pack the app written in python in an installer. Perhaps I am wrong, and you could give me in exchange an advise ?! I also believe in performance. An application written in C++, can be compiled easily on the target platform (like on windows systems) with it's native compiler. How would it be with wxPython ?! Thanks for your response Tamer On 16.12.2013 03:18, Mark Lawrence wrote: > On 16/12/2013 00:34, Tamer Higazi wrote: >> >> But to be honest, I don't believe that Python is the best choice for GUI >> development, but it's only an opinion. >> Otherwise I would advise you going into C++ and code with wxWidgets. >> >> Tamer >> > > Can you state why you prefer C++ and wxWidgets over Python and > wxPython, which wraps wxWidgets? >
[toc] | [prev] | [next] | [standalone]
| From | Wolfgang Keller <feliphil@gmx.net> |
|---|---|
| Date | 2013-12-17 16:07 +0100 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <20131217160751.0a902cd1ac2deb96247ebfc6@gmx.net> |
| In reply to | #61996 |
> The other thing, specially if you would make a customer project, I > don't know how to pack the app written in python in an installer. If you want your application to be actually user-friendly, you make it available as an installer-less zip archive. It works with Python applications, no matter whether they use PyGTK, wxPython or PyQt. > Perhaps I am wrong, and you could give me in exchange an advise ?! Python is probably the "best" language for application implementation in general. Anything that would really need to be faster than python itself allows can easily be implemented in "compiled" Python à la Pyrex et al. > I also believe in performance. An application written in C++, can be > compiled easily on the target platform (like on windows systems) with > it's native compiler. > How would it be with wxPython ?! It isn't an issue. With that pathological non-operating system Microsoft (Not Responding), as soon as your application has to do any I/O, or if there's any other process (virus scanner, file system indexer) running that does I/O, any computer will be unusable for productive work anyway. On an actual operating system, the attitude of the developers (do they actually care or just don't give a darn) is *the* critical issue for end-user productivity. If a developer makes a statement such as of "just get a faster computer" or "just get more RAM", then (s)he probably doesn't give darn. C++ applications, just like Java applications, tend to leak horrible amounts of memory these days, just because the vendors/developers don't care. Sincerely, Wolfgang
[toc] | [prev] | [next] | [standalone]
Page 3 of 6 — ← Prev page 1 2 [3] 4 5 6 Next page →
Back to top | Article view | comp.lang.python
csiph-web