Could you explain to me why you're not using wxThread? Or
for that matter, where is wxThread? While there is
documentation, I can't find it in the source. The
example provided with wxPython also uses normal threading.
Largely because the Python standard library handles threading, so I stick to
that. I don't even think of looking in wxPython for things like this. That
may also be why it isn't there - I understand that Robin tends not to spend
the effort wrapping features of wxWindows which are already available in the
Python standard library.
In general, my preference is for using the standard library first, then
using features of libraries I am already using, and only as a last resort
adding a dependency on a new library. (Hence, I'd use the standard library
for sockets and threads, even in an application which uses wxPython, and I'd
prefer using wxImage features over including PIL for image handling).
Of course, that's just a personal preference...
Paul.
···
From: Michael Gilfix [mailto:mgilfix@eecs.tufts.edu]
It totally makes sense. I just thought that perhaps there was some
special benefit to running with wxThread (or else why have it) but
then I remembered that I was looking at C++ documentation and they
need it.
-- Mike
···
On Thu, Feb 28 @ 11:53, Moore, Paul wrote:
From: Michael Gilfix [mailto:mgilfix@eecs.tufts.edu]
> Could you explain to me why you're not using wxThread? Or
> for that matter, where is wxThread? While there is
> documentation, I can't find it in the source. The
> example provided with wxPython also uses normal threading.
Largely because the Python standard library handles threading, so I stick to
that. I don't even think of looking in wxPython for things like this. That
may also be why it isn't there - I understand that Robin tends not to spend
the effort wrapping features of wxWindows which are already available in the
Python standard library.
In general, my preference is for using the standard library first, then
using features of libraries I am already using, and only as a last resort
adding a dependency on a new library. (Hence, I'd use the standard library
for sockets and threads, even in an application which uses wxPython, and I'd
prefer using wxImage features over including PIL for image handling).
Of course, that's just a personal preference...
Paul.
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users
`-> (Paul.Moore)
--
Michael Gilfix
mgilfix@eecs.tufts.edu